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:
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.