MATLAB: Do I get a Java exception upon executing a Java class written for MATLAB 7.0.4 (R14SP2) after installing MATLAB 7.1 (R14SP3)

libraryMATLABpath

I have been using a Java class which has worked successfully in MATLAB 7.0.4 (R14SP2), but when I create an instance of this class for use in MATLAB 7.1 (R14SP3), I receive the following error:
??? Java exception occurred:
java.lang.NoClassDefFoundError
at com.fame.timeiq.persistence.Server.b(Server.java)
at com.fame.timeiq.persistence.Server.getSession(Server.java).
even though the "Server" class has been defined, and is located in the current directory.

Best Answer

This generally indicates an error in the MATLAB Library Path. Check the librarypath.txt file in the following directory:
$MATLAB/toolbox/local
where $MATLAB is the MATLAB root directory, as returned by entering
matlabroot
at the MATLAB Command Prompt.
Ensure that no paths listed in the librarypath.txt file point to previous installations of MATLAB.