I'm using an external jar (developped by me) into my matlab projet (developped by me) with javaaddpath command.
I have updated my programming environnement from Matlab r2011a to r2012b, jdk from 1.6.0_29 to 1.7.0_09 and windows from XP to Seven.
Firstly I have not recompiled my jar file, and my whole project is still working (running without bug).
But now, I'm trying to recompile my jar file. I had some problem with that, but it solved (see: javac @<opiton_file> and encoding). But now that my jar tool is rebuilt, I can't use it into matlab... Matlab display the error:
Undefined variable "optimizer" or function "optimizer.Gui".
where optimizer is a package (ie a directory inside the jar file, directory which contain a Gui class).
To summarize, I'm using the code (the last line must popup a JFrame) :
javaaddpath('the full path of my jar file.jar');
optimizer.Gui;
Without updating the compiled version of the jar file, it's working. With the new version (same source code), matlab output the error.
I have a Main class (containing a main function) at the root of the jar file and a manitifest specifying this Main class as the main class. This Main class make some test, to ensure all the functionnalities into the jar file is working. So I can run java -jar my_jar_file.jar and see that all test are OK (one of the test displayed my optimizer.Gui).
Is there an incompatibility of the javac version and matlab? Of is it because I had some trouble with file encoding?...