We've been hving difficulties getting a private simulation to work. We've setup a new project the way that the Help file directed us. While viewing games.xml we add our team and a sample team. After hitting run the following error occurs "Could not find the main class. Program will exit.", followed by, "java.lang.NoClassDefFoundError: com/ibm/jgfw/Launcher - Exception in thread 'main'". We've yet to make any changes or additions to the MyShaceShip class. After we recieved the error the first time we added a sub-class to MySpaceShip public static void main () { }, just to see if the simulation would start. No dice... We're just beggining to build our MySpaceShip class but I don't see why the simulation wouldn't run with an "empty" MySpaceShip class. Help would be appreciated. :D
Posts:
2
Registered:
Oct 11, 2007 10:38:31 AM
Re: Error when attempting private simulation
Posted:
Oct 11, 2007 10:41:58 AM
in response to: 's post
Hi,
i was wondering if you solved that problem, because i am having a similar problem with the private simulation:
IBM Gaming v3.1.0
Error loading MySpaceShip from /<path to workspace>/workspace/Game
java.lang.ClassNotFoundException: MySpaceShip
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.ibm.jgfw.util.SecureClassLoader.loadClass(SecureClassLoader.java:119)
at com.ibm.codeinvaders.PlayerLogic.loadClass(PlayerLogic.java:45)
at com.ibm.codeinvaders.PlayerLogic.<init>(PlayerLogic.java:39)
at com.ibm.codeinvaders.CodeInvadersSkin.getPlayerByDir(CodeInvadersSkin.java:62)
at com.ibm.jgfw.Launcher.loadPlayersFromPlaylist(Launcher.java:201)
at com.ibm.jgfw.Launcher.getPlayers(Launcher.java:217)
at com.ibm.jgfw.Launcher.playSyncTournament(Launcher.java:187)
at com.ibm.jgfw.Launcher.run(Launcher.java:169)
at com.ibm.jgfw.Launcher.main(Launcher.java:131)
Exception in thread "Playback thread" java.lang.NullPointerException
at com.ibm.codeinvaders.PlayerLogic.initImpl(PlayerLogic.java:180)
at com.ibm.codeinvaders.InvadersState.<init>(InvadersState.java:117)
at com.ibm.codeinvaders.CodeInvadersSkin.getInitialState(CodeInvadersSkin.java:107)
at com.ibm.jgfw.internal.Match.run(Match.java:133)
at com.ibm.jgfw.internal.PlaybackThread.run(PlaybackThread.java:70)
The same Exception is thrown if i attempt to run a private simulation with other ships that came in the server snapshot.
If i run a private simulation with only the examples it works.