Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
matlab javaclasspath()在mac中不工作_Java_Matlab_Osx Snow Leopard_Pwd - Fatal编程技术网

matlab javaclasspath()在mac中不工作

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中会出

以下是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中会出现以下错误:

Undefined variable "googleTrend" or class "googleTrend.TrendDataExtractor.ExtractData"
我认为javaclasspath(pwd)工作不正常。

注意:pwd返回当前工作目录,因为pwd有问题。我在javaclasspath中对路径进行了硬编码,结果很好

googleTrend是当前路径的子目录吗?或者googleTrend在Jar文件中?要添加到Memming的评论中,我们需要查看相关的*.Jar和*.class文件的位置和内容(或部分)。