ok, opened the cmd, writed "java -jar 3D-Pong.jar" and got:
version mismatch: jar version is '21', native library version is '12'
tried to run with "java -Djava.library.path="C:jME2jME2liblwjglnativewin32";"C:jME2jME2Physicsimplodelib" -jar 3D-Pong.jar" and got the error that i miswrote a java option
how to distribute the game proprialy on windows? and how to make it run with a doubleclick on (either a link or a .ini or wather)
thx in advance
Guedez said:
ok, opened the cmd, writed "java -jar 3D-Pong.jar" and got:
version mismatch: jar version is '21', native library version is '12'
tried to run with "java -Djava.library.path="C:jME2jME2liblwjglnativewin32";"C:jME2jME2Physicsimplodelib" -jar 3D-Pong.jar" and got the error that i miswrote a java option :/
how to distribute the game proprialy on windows? and how to make it run with a doubleclick on (either a link or a .ini or wather)
thx in advance
I don't know about your application, but your command does look funky. Try this:
java -Djava.library.path="C:jME2jME2liblwjglnativewin32;C:jME2jME2Physicsimplodelib" -jar 3D-Pong.jar
++javagrendel
The errors about the version mismatch refer to a mismatch in Java environments…
For example, perhaps you compiled with Java 6 and are trying to run it w/ Java 5.
The errors about the version mismatch refer to a mismatch in Java environments...
For example, perhaps you compiled with Java 6 and are trying to run it w/ Java 5.
No, actually LWJGL does an internal check to make sure the JAR version matches the DLL version so that no odd incompatibilities arise, etc. Make sure the native library comes from the same LWJGL version as the JAR, you can check this by looking at your class path, it should point to something like "E:LibrariesLWJGL2.1jar" while the java.library.path points to a similar path "E:LibrariesLWJGL2.1nativewin32"
lol, I guess I was confused; yup you are right that is a linkage error for the native library…