Sign in to follow this  

[java] LWJGL 'NoClassDefFoundError'

This topic is 4335 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to run one of the LWJGL examples with JCreator. It compiles fine, but when I run it I get a 'NoClassDefFoundError: org/lwjgl/opengl/Display'. I've included lwjgl.jar and the rest in the required libraries, and I've added the correct -Djava.library.path, what am I missing?

Share this post


Link to post
Share on other sites
I don't know how JCreator does a final run of your program. Probably the same way that you are doing it from the command line. In which case you have to make sure that the Manifest list the LWJGL jar like so:


Class-Path=log4j-1.2.9.jar commons-logging.jar commons-cli-1.0-beta-2-dev.jar jrythm.jar jdom.jar jogl.jar lwjgl.jar


That might be the problem,
L-

Share this post


Link to post
Share on other sites
Eh... I'm afraid I have no clue what do with that. All I could think of was to add it to the runtime parameters, but that didn't do anything. Also whats this 'manifest' you were refering to?

,thanks

[edit] Well, I "solved" the problem by using Eclipse instead, still can't figure out how to get it to run with JCreator.

[Edited by - PorkBag on January 27, 2006 11:18:52 PM]

Share this post


Link to post
Share on other sites
Manifest files are description files for your jar - they contain information about you, and about your code. In this specific case, Lucidquiet is specifying the classpath of your application, telling the JVM to load classes from the jars on the "Class-Path" clause.

Son of Cain

Share this post


Link to post
Share on other sites

This topic is 4335 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this