Hey guys! I’m making my game using jME SDK Alpha-3, but when pressing F6 (Compile & Run) it compiles and runs my old code! Not the one I have in the file! I really don’t know what’s happening. I don’t know if you guys know what I mean.
Thanks in advance, borba.
F6 compiles the main project, you sure you selected the right project as main project?
Thanks for your reply, normen.
I already solved my problem. I don’t know if is a bug, but if it is, maybe for in Alpha-4 GDE could detect the main class and change it. Cause my problem was: I used “Refactor” to rename the packages and the main file, but the GDE did not changed it in Properties > Run > Main Class and caused this error:
[java]java.lang.NoClassDefFoundError: mygame/Main
Caused by: java.lang.ClassNotFoundException: mygame.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: mygame.Main. Program will exit.
Exception in thread “main” Java Result: 1[/java]
Go to the project properties and select the correct main class under “run”.
I was editing the topic, thanks anyway normen.