简体   繁体   中英

matlab javaclasspath() not working in mac

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM