matlab javaclasspath() 在 Mac 上不起作用

发布于 2024-12-25 06:08:42 字数 471 浏览 4 评论 0原文

这是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灯角 2025-01-01 06:08:42

这是 pwd 的问题。我硬编码了 javaclasspath 中的路径,它工作得很好

It was problem with the pwd. I hard-coded the the path in javaclasspath it worked fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文