Can anyone tell me how to build a start script for a java game for Mac OS X?
I just created a game.command file which contains just this one line:
java -Djava.library.path=lib/lwjgl/native/macosx:lib -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true -jar game.jar
If I enter this in a console window the game runs as it should, but when launching (double clicking) this .command file I get this error:
Unable to access jarfile game.jar
I thought it would have something to do with paths, so I changed the line to this:
java -Djava.library.path=/Users/Spezi/Desktop/game/lib/lwjgl/native/macosx:/Users/Spezi/Desktop/game/lib -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true -jar /Users/Spezi/Desktop/game/game.jar
This works, but how can this be run without setting absolute paths?
Or is there another (maybe better) way to easily run it?