matlab javaclasspath()在mac中不工作
以下是matlab代码:matlab javaclasspath()在mac中不工作,java,matlab,osx-snow-leopard,pwd,Java,Matlab,Osx Snow Leopard,Pwd,以下是matlab代码: javaclasspath(pwd); % set java path to current working directory % call the java function Result = googleTrend.TrendDataExtractor.ExtractData(Email, Password, word, from, till, scale, handlerHttps, handlerHttp); 它在windows中运行正常,但在mac中会出
javaclasspath(pwd); % set java path to current working directory
% call the java function
Result = googleTrend.TrendDataExtractor.ExtractData(Email, Password, word, from, till, scale, handlerHttps, handlerHttp);
它在windows中运行正常,但在mac中会出现以下错误:
Undefined variable "googleTrend" or class "googleTrend.TrendDataExtractor.ExtractData"
我认为javaclasspath(pwd)工作不正常。注意:pwd返回当前工作目录,因为pwd有问题。我在javaclasspath中对路径进行了硬编码,结果很好googleTrend是当前路径的子目录吗?或者googleTrend在Jar文件中?要添加到Memming的评论中,我们需要查看相关的*.Jar和*.class文件的位置和内容(或部分)。