【问题标题】:matlab javaclasspath() not working in macmatlab javaclasspath()在mac中不起作用
【发布时间】:2012-01-06 22:46:38
【问题描述】:

这是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 返回当前工作目录

【问题讨论】:

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

标签: java matlab osx-snow-leopard pwd


【解决方案1】:

密码有问题。我对 javaclasspath 中的路径进行了硬编码,它运行良好

【讨论】:

    猜你喜欢
    • 2014-01-29
    • 2015-02-17
    • 1970-01-01
    • 2017-05-25
    • 1970-01-01
    • 1970-01-01
    • 2013-04-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多