java.lang.NoClassDefFoundError: org/lwjgl/opengl/glu/GLU

Hi everyone!



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?

The problem is you are using lwjgl2.0 and we are not (yet)

Thanks for your quick reply. Which version do you currently support?

1.1.4

I have the exact same problem. how do i fix it?

i had the same problem (i think) because i used FengGUI (which uses the old lwjgl).

i had to update  FengGUI to use lwjgl 2.0.

but how would you update it?

well i copied the lwjgl 2.0 folder into the fenggui project, updated the ant file, updated some package names and rebuilt the jar.



i can upload the new FengGUI jar when i get home later.

Core-Dump said:

well i copied the lwjgl 2.0 folder into the fenggui project, updated the ant file, updated some package names and rebuilt the jar.

i can upload the new FengGUI jar when i get home later.

Thanks

there it is: FengGUI jar compiled with lwjgl 2.0rc1

http://code.google.com/p/jme-demos/source/browse/trunk/stardust/lib/fengui_lwjgl2.0.jar

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 :slight_smile:



Do you have the same problem with a SimpleGame like the first post and do you use the current svn version of jME?

Core-Dump said:

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.

Chimeara said:

Core-Dump said:

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.


Hi chimera,
yesterday I started with jme, and I have same problem. I download lwjgl version 1.1.4 and the simplegame open fine.
vesion 1.1.4 here
http://downloads.sourceforge.net/java-game-lib/lwjgl-1.1.4.zip?modtime=1200945973&big_mirror=0

Hi Gents and Ladies,



I've received following error with JAR package from google-code resources:


java.lang.NoClassDefFoundError: org/lwjgl/util/glu/GLU



With HelloWord included to package .java file.

I work on Mac 10.5.8 with Eclipse.

Your assistance would be appraciated.

best,
MRS

it seems, you didnt add lwjgl_util.jar to the project