MATLAB: Does the ‘.’ operator in the CLASSPATH.TXT file not work in MATLAB 6.5 (R13)

.classpathcurrentdirectoryimportjavaMATLABr13txt

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.

Best Answer

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.