matlab javaclasspath() 在 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 返回当前工作目录
Here is the matlab code:
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);
It runs fine in windows but in mac it gives the following error:
Undefined variable "googleTrend" or class "googleTrend.TrendDataExtractor.ExtractData"
I think javaclasspath(pwd) is not working correct.
Note: pwd returns the current working directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 pwd 的问题。我硬编码了 javaclasspath 中的路径,它工作得很好
It was problem with the pwd. I hard-coded the the path in javaclasspath it worked fine