Reputation: 1
I've looked up how to export .jars in eclipse online for hours. I've tried all the tutorials and have not been able to open my game. I've used the command prompt with
java -jar <name>
and get an error that says
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException.
Here's how I export my .jar in eclipse:
Upvotes: 0
Views: 2218
Reputation: 900
Exporting it as jar will just package your project as an archive only. If you want to run it from the jar choose
Export>Runnable Jar File
Make sure you select your main class in the Launch Configuration.
Upvotes: 0