Jump to content
  • Advertisement
Sign in to follow this  
Zaris

Trouble creating game libary

This topic is 1879 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 create a basic lib using lwjgl.I created the jar and added to a new project. It seems to be working well, but when I go to run the program I get this error.

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
    at GameTest.main(GameTest.java:9)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 1 more

 

Does anyone know what step I am missing?

 

Thanks.

Share this post


Link to post
Share on other sites
Advertisement

Found my error, did not add the lwjgl libs to the new project. Is their a way to for the libary the include these files without having to add to the new project?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!