문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top