I am trying to set up my dev environment in intellij but i geth the following exception when i run a sample app:
java.lang.NoClassDefFoundError: org/lwjgl/opengl/glu/GLU
at com.jme.renderer.lwjgl.LWJGLCamera.doFrameChange(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLCamera.apply(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLCamera.<init>(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLRenderer.createCamera(Unknown Source)
at com.jme.app.BaseSimpleGame.initSystem(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at eu.thegame.main.HelloWorld.main(HelloWorld.java:27)
I have set the java.library.path vm parameter to point to the win32 dlls. I have also included to my project's libraries the jms jars (of course) as well as the the lwjgl-2.0 jars.
The code i'm trying to run is the following:
public class HelloWorld extends SimpleGame {
protected void simpleInitGame() {
display.setTitle("A Simple Test");
Box box = new Box("my box", new Vector3f(0, 0, 0), 2, 2, 2);
box.setModelBound(new BoundingSphere());
box.updateModelBound();
rootNode.attachChild(box);
}
public static void main(String[] args) {
HelloWorld app = new HelloWorld();
app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);
app.start();
}
}
After looking in my lwjgl library i found that a
GLU
class, but this is located in
org/lwjgl/util/glu/GLU
instead to the path indicated in the exception. Doesn any body has some clue on what's the problem?
umm, i just added the FengGUI.jar to the library… is that what i am meant to do?
because now i am getting this error:
24/06/2008 12:27:11 com.jme.app.BaseGame start
INFO: Application started.
24/06/2008 12:27:11 com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
24/06/2008 12:27:11 com.jme.system.PropertiesIO load
WARNING: Could not load properties. Creating a new one.
24/06/2008 12:27:11 class jmetest.renderer.TestTeapot start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at org.lwjgl.opengl.Display.<clinit>(Display.java:111)
at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:669)
at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:219)
at com.jme.app.BaseGame.start(BaseGame.java:62)
at jmetest.renderer.TestTeapot.main(TestTeapot.java:61)
24/06/2008 12:27:11 com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
24/06/2008 12:27:11 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
24/06/2008 12:27:11 com.jme.app.BaseGame start
INFO: Application ending
mhh only if you were using FengGUI before, maybe i led you on the wrong track :)
Do you have the same problem with a SimpleGame like the first post and do you use the current svn version of jME?
umm, no i wasn't using FengGUI before. I did have the same problem as the first post, but now i seem to have a different problem. yes i am using current svn and jME.
Same problem. I checked out the 2.0 version of jME from svn, compiled it, ran the TestChooser, selected a test and ran it (using lwjgl) and got this error.
Could it be that jME comes with the wrong version of lwjgl?
EDIT: No, that's not it. Same error with 1.1.4 and 2.0.
System specs, if it helps:
OS: Ubuntu Linux 7.10
Processor: AMD Athlon XP 2400+
Graphics card: ATI Radeon 9800 Pro
SOLVED: I forgot to point Java to lwjgl_util.jar. After I did that it worked perfectly.
mhh only if you were using FengGUI before, maybe i led you on the wrong track :)
Do you have the same problem with a SimpleGame like the first post and do you use the current svn version of jME?
umm, no i wasn't using FengGUI before. I did have the same problem as the first post, but now i seem to have a different problem. yes i am using current svn and jME.