Why does the '.' operator in the CLASSPATH.TXT file not work in MATLAB 6.5 (R13)?
1 view (last 30 days)
Show older comments
Why does the '.' operator in the CLASSPATH.TXT file not work in MATLAB 6.5 (R13)?
I am attempting to invoke an object of a Java class that is in the current directory of my MATLAB workspace. However, using the following code:
j = javaObject('helloworldapp')
results in the following error message:
??? Error using ==> javaObject
No class helloworldapp can be located on Java class path.
I never received this error message in MATLAB R12.1; instead, the object of the class helloworldapp is created.
Since '.' is in CLASSPATH.TXT (in both MATLAB R12.1 and R13), there should not be a difference in the behavior between these two versions.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This is a bug in MATLAB 6.5 (R13).
The workaround is to explicitly add the path to the Java class in CLASSPATH.TXT in MATLAB 6.5 (R13).
PLEASE NOTE: You must re-start MATLAB after adding the path to CLASSPATH.TXT in order for the change to take effect.
0 Comments
More Answers (0)
See Also
Categories
Find more on Java Package Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!