Community
Participate
Working Groups
After refactoring a class name within a J2ME MIDlet project i always get a ClassNotFoundException. The renamed class could not be found but the file was renamed correct. If i rename the class back to the orignal name the execution works. The problem is that the files will not exported correct. The jar file at .mtj.tmp folder does not contain the renamed class file. If i 'export' the renamed class manualy to the jar archive the execution runs perfectly. Another 'workaround' is to move the renamed class to another package and back again. If i rename the class name and references manually there are no problems.
Hi Max, Which version of MTJ are you using? Do you have an error log you can attach so we can investigate this issue? Thanks Diego
Created attachment 142866 [details] eclipse log file
I attached the log file and here is my MTJ version: Mobile Tools for Java 1.0.0.v200906121354-7V7A7BFEx2XZqZ-lBoXfQ org.eclipse.mtj.feature.group
Hello Max, It seems that the refactoring is not updating the build.properties file which by not including the renamed resource does not get it packaged into the application JAR file. I will fix this soon! Regards, David Marques (In reply to comment #3) > I attached the log file and here is my MTJ version: > > Mobile Tools for Java 1.0.0.v200906121354-7V7A7BFEx2XZqZ-lBoXfQ > org.eclipse.mtj.feature.group >
Bug fixed and code committed.
Released