Hi.I come from China,my english is very bad.I use the JME engine first time,and imports jme files for CVS in the eclipse.First of all,i tried to run the examples, did not find any problems.Next, I created an own project,which is running in the ECLIPSE also did not find the problem.When i use the Fatjar to Packing my project and run the Jar file, it is throws an error in the console.
severe: Exception in game loop
java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(LWJGLSystemProvider.java:54)
at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:283)
at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:184)
at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:372)
at com.jme.app.BaseGame.start(BaseGame.java:70)
at asd.Login.main(Login.java:101)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
… 6 more
2009-6-10 1:33:15 com.jme.app.BaseSimpleGame cleanup
info: Cleaning up resources.
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(LWJGLSystemProvider.java:54)
at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:283)
at com.jme.util.TextureManager.doTextureCleanup(TextureManager.java:838)
at com.jme.app.BaseSimpleGame.cleanup(BaseSimpleGame.java:598)
at com.jme.app.BaseGame.start(BaseGame.java:102)
at asd.Login.main(Login.java:101)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
… 6 more
Please send mail: dreamsky1989@sina.com.
Many thanks in advance !
I use fatjars sometimes and it should work. Try repacking it and make sure to pack everything needed into the jar.
Seems like you're missing the required LWJGL files. Make sure that fatjar includes lwjgl.jar and lwjgl_util.jar as these are required to run jME.
Hi, I havent used fatjars before, but if you still encounter a problem then try and package your files the old way, as described in the sun java tutorial:
http://java.sun.com/docs/books/tutorial/deployment/jar/
Hope that helps.