Exporting with JarSplice and LWJGL

Im using JarSplice to export my .jar however i get an error when exporing when i follow the steps exactly and the project works fine within the IDE which is eclipse in this case:

jar creation failed due to the follwing exception: Duplicate entry: org/lwjgl/BufferChecks.class 

Any suggestions?

You have LWJGL on your classpath twice.

I can only see it once on here:

EDIT: Shorlty after posting this, it said jar successfully created however when i click it, it doesnt work

My guess is that lwjgl-debug.jar and lwjgl.jar both contain all lwjgl’s classes.

Well, run from the commandline and look at the stacktrace ::slight_smile:

That is correct, don’t use both those jars, use either one but not both at the same time. lwjgl-debug.jar is useful when looking for opengl errors, otherwise use the plain lwjgl.jar.

Further you also have both slick-util.jar and slick.jar on the classpath. slick-util.jar is a subset of slick.jar so it’ll contain duplicate classes, so use only one of those.

Also noticed that you have AppleJavaExtension.jar on the classpath, you probably don’t need that as its only useful when compiling LWJGL.

Further you probably don’t need lwjgl_util_applet.jar and lzma.jar on the classpath as they are used only for LWJGL web applets.

You also probably don’t want lwjgl_test.jar since that only contains lwjgl test classes, so unless you are trying to run one to those you should remove it too.

Lastly its unlikely that you need asm-debug-all.jar unless you are using it in your app or using the Mapped stuff from lwjgl_util.jar.

As for not running as mentioned above by Riven, run it in the command line (using “java -jar yourjar.jar”), and post the output.

Its strange I followed both of your guys’ steps and yet the program just opens and then closes straight away. Its really starting to confuse and annoy me now :stuck_out_tongue:

Any more ideas?

So nothing is printed when you run it from the command line?

I’m not sure about the error but a YouTuber named Oskar Veerhok explains how to do it, which i found easy.

No worries guys, ive sorted it now. I was missing the model I had being used within the program(I assumed it was already embeded)

Thankyou guys anyway for your time!

How exactly did you manage to do this with JARsplice?