HelloWorld.java example can't run

Hi, i'm totally noobs in jME. I've searched my problem in forum, but i can't find what my problem there.



I'm using:

  • NetBeans 6.8
  • Windows 7 Professional-64bit
  • jME 2.0.1



    I’ve followed the tutorial here for setting my NetBeans, but i’m stuck at the 3rd step: 3.Running the HelloWorld Code Sample. The HelloWorld.java is compiled successfully but failed to run.



    The error detail:

run:
May 28, 2010 4:50:33 PM com.jme.app.BaseGame start
INFO: Application started.
May 28, 2010 4:50:33 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
May 28, 2010 4:50:33 PM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
java.lang.UnsatisfiedLinkError: C:UsersAzhimistratorDocumentsNetBeansProjectsjme2jME2_0_1-Stablelibliblwjglnativewindowslwjgl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        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.jme.app.BaseGame.start(BaseGame.java:67)
        at hello3d.test.HelloWorld.main(HelloWorld.java:12)

Can't load IA 32-bit .dll on a AMD 64-bit platform - please either download a current lwjgl version with 64 bit support or change your Java settings to use a 32bit JVM.

ok, i've downloaded the latest version of lwjgl (2.4.2) and copy paste it over the old lwgl folder in jme 2.0.1. Like before it compiled successfully but again, failed to run. But now the error message is different.



Error details:


run:
May 28, 2010 6:26:39 PM com.jme.app.BaseGame start
INFO: Application started.
May 28, 2010 6:26:39 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
May 28, 2010 6:26:39 PM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
java.lang.LinkageError: Version mismatch: jar version is '21', native libary version is '22'
        at org.lwjgl.Sys.<clinit>(Sys.java:103)
        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.jme.app.BaseGame.start(BaseGame.java:67)
        at hello3d.test.HelloWorld.main(HelloWorld.java:12)

seems like you are mixing the native binary and jar files of the new and old versions.