# Trouble creating game libary

## Recommended Posts

Zaris    183

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)
... 1 more

Does anyone know what step I am missing?

Thanks.

##### Share on other sites
Zaris    183

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?