First we tried just exporting using eclipse, but we ran into errors with "UnsatisfiedLinkError" referencing "no jogl found" under java.library.path.
Next we tried building a FatJar using the Fat Jar Eclipse Plugin located at fjep.sourceforge.net, and able to be downloaded via eclipse from http://kurucz-grafika.de/fatjar . This yielded similar results, however.
To attempt to remedy this, we copied all of the files referencing gluegen and jogl into the java\jdk\jre\lib\ext directory, which removed the UnsatisfiedLinkError for jogl but popped up with another for Win7Touch . After migrating all files we could find referencing that to the ext folder as well, including some that probably had nothing to do with it, we were still at the same error. Not only was this getting messy, but it was getting us nowhere and would be annoying to set up via batch when deploying on a new pc.
Next, we elected to try moving all relevant files into the JAR (.dlls, .jnilibs, basically everything referencing jogl and win7) into the JAR itself, but this didn't fix any errors.
After hunting around on the forums some more in the morning, we found that one solution was to place all of these files in the same directory, on the same level as the jar file, but not *IN* it. This yielded success.
End result: To make the executable jar file run when using mt4j, move all .dlls, .so's, and *.jnilib's into the same directory as the jar, as well as any pictures or sounds your JAR needs to run properly. For us, the relevant .so's and libraries and such were as follows:
gluegen-rt.dll
jogl.dll
jogl_awt.dll
jogl_cg.dll
libgluegen-rt.jnilib
libgluegen-rt.so
libGlulogicMT.jnilib
libjogl.jnilib
libjogl.so
libjogl_awt.jnilib
libjogl_awt.so
libjogl_cg.so
ManyMouse.dll
ManyMouse.so
Win7Touch.dll
Win7Touch64.dll
No comments:
Post a Comment