Home Game Development opengl – Building an LWJGL jar file – java.lang.NoClassDefFoundError

opengl – Building an LWJGL jar file – java.lang.NoClassDefFoundError

0
opengl – Building an LWJGL jar file – java.lang.NoClassDefFoundError

[ad_1]

EDIT: Recently acquired it working by making a batch file that does this:

set /p CP=<cp.txt
java -cp %CP%;testing.jar me.pale.predominant.Main

and cp.txt is that this

C:Users*DesktopLWJGL293lwjgl-2.9.3jarlwjgl.jar;C:Users*DesktopLWJGL293lwjgl-2.9.3jarlwjgl_util.jar;C:Users*DesktopLWJGL293lwjgl-2.9.3jarjinput.jar;C:Users*DesktopLWJGL293slick-util.jar

Recently, I’ve been in my head about LWJGL and creating video games, and have made a easy take a look at thingy. I attempted to construct the jar utilizing eclipse, however after I run the jar file, it errors out. When I take advantage of Command Prompt, that is the output:

D:>java -jar testing.jar
Picked up _JAVA_OPTIONS: -Xmx8192M
Error: A JNI error has occurred, please examine your set up and take a look at once more
Exception in thread "predominant" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.privateGetMethodRecursive(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at solar.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at solar.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
        at java.web.URLClassLoader.discoverClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at solar.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 7 extra

My native folder is right, I’ve checked it.

The undertaking runs completely positive within the IDE

Here’s what’s in my construct path:

jinput.jar
lwjgl_util.jar
lwgl.jar > NativeLibLoc: [Native Dir]
slick-util.jar
jre system library [SE-1.8]

I do not know what the issue is, however thanks for anybody’s assist.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here