Hello, I just wondered if anyone could help me with this :clue:. I usually develop on Win 8 but want to make sure my jar files run on Linux also.
I can make a Display using LWJGL and run it on eclipse and export a .jar to run on windows and everything runs as expected. If I take the same project and run it in eclipse on Linux Mint it runs just the same, but it will not run as a .jar file. (I can even export the jar file in Linux Mint and then run it on Windows)
I have the natives in a folder called “natives” (for each OS in the same folder) in the same directory as the game.jar.
I use
System.setProperty("org.lwjgl.librarypath",new File("natives").getAbsolutePath());
Or
System.setProperty("org.lwjgl.librarypath",System.getProperty("user.dir") + "/natives/");
to load the natives. I give the permissions to the Jar file to run and use the OpenJDK 7.
Does anyone know what I can do to get it working on both windows and Linux?
Cheers