Making a lwjgl application executable by "Double clicking"

Hi there!

I’ve always seemed to struggle with this problem, over the past few months of my learning lwjgl. When I export my application as a jar file, I am never able to make it executable by double clicking on it. I have tried Jar Splice, but even with that I find that I still need to use a batch/sh file to make the jar still run.

When I run my current jar through jar splice, and double click it, the application turns on, the window appears, but right after it loads all it’s resources (models/textures), it seems that it turns off.

The batch/sh script I use:

java -jar "test.jar"

I tried enabling the console in my Java’s preferences, but it doesn’t seem to turn on.

Any ideas?