64-bit windows and Web Deployment (+ some mac help?)

Hi everyone,

I'm currently in the processing of preparing a project for web deployment.

I've set up the JNLP file and (seem to have) got it working smoothly on 32-bit Windows. It's available from here: http://heim.ifi.uio.no/kwinnhol/decor/web (Not doing much yet, drag-and-drop the squares to place furniture).

First: Is anyone on a Mac? Can you confirm whether it works or not, and possibly print error messages here?

Then: What I'm primarily wondering is how I can make this work for people on 64-bit versions of Windows, that have installed the x64 version of JVM. I'd like it to be as fuss-free as possible for people to get it to run on various configurations.

It seems that the lwjgl.dll is compiled for 32-bit systems and that no 64-bit version is included in the current jme repo?

Seems you require Java 6, so it doesn't work on the Mac.

After switching to the Java 6 VM on OSX 10.5.6, which is 64 bit only, so you get:

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.sun.javaws.Launcher.executeApplication(Launcher.java:1332)
   at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1270)
   at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1117)
   at com.sun.javaws.Launcher.run(Launcher.java:105)
   at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1030)
   at org.lwjgl.Sys$1.run(Sys.java:72)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
   at org.lwjgl.Sys.loadLibrary(Sys.java:81)
   at org.lwjgl.Sys.<clinit>(Sys.java:98)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
   at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:682)
   at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:252)
   at com.jmex.game.StandardGame.<init>(StandardGame.java:175)
   at com.jmex.game.StandardGame.<init>(StandardGame.java:137)
   at com.jmex.game.StandardGame.<init>(StandardGame.java:129)
   at no.kreatopia.decor.Decor.main(Decor.java:11)
   ... 9 more

Afaik no 64 bit library yet for OSX. However, if you update to the very latest jME 2 version in SVN, there should be 64 bit libraries for windows.

Thanks for your help!

I didn't intend to require Java 6, but I guess that may be a result of having java version 1.5+ in the JNLP file? I'd guess that meant Java 5.

Any tips on how to move forward with this? Is it reasonable to expect to get webstart apps to deploy smoothly cross-platform win/mac/linux, 32/64 bit?

Your classes are compiled using a java 6 target, this is not related to any webstart configuration.

OK, I've set the version target to 1.5 now. Would I need to compile a new jme.jar in addition to my own app.jar, or is it enough to just recompile my app.jar to get 1.5 JRE compatibility?

Also, your bug is interesting. It normally means the LWJGL lib is not found, yet I have specifically set up Mac versions of the libraries as directed in the tutorial. Any suggestions?