Unable to start HelloWorld example :p

Hello, I heard about jMonkey before couple of hours, I downloaded all jars neded, then I created new project in Eclipse, added those external jars to my project, and when I tried to run the helloworld example that I found on http://www.jmonkeyengine.com/wiki/doku.php?id=starter:hello_world, I got these errors, and I don't know how to fix it, can anyone help me please?!?



2008.05.25 13:35:47 com.jme.app.BaseGame start

INFO: Application started.

2008.05.25 13:35:47 com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

2008.05.25 13:35:47 com.jme.system.PropertiesIO load

WARNING: Could not load properties. Creating a new one.

2008.05.25 13:35:47 class HelloWorld start()

SEVERE: Exception in game loop

java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException

at com.jme.app.AbstractGame.getAttributes(Unknown Source)

at com.jme.app.BaseGame.start(Unknown Source)

at HelloWorld.main(HelloWorld.java:15)

Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

… 3 more

2008.05.25 13:35:47 com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException

at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(Unknown Source)

at com.jme.system.DisplaySystem.getDisplaySystem(Unknown Source)

at com.jme.util.TextureManager.doTextureCleanup(Unknown Source)

at com.jme.app.BaseSimpleGame.cleanup(Unknown Source)

at com.jme.app.BaseGame.start(Unknown Source)

at HelloWorld.main(HelloWorld.java:15)

Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

… 6 more

did you do step 10 in the Eclipse Guide to jME?

Is there way to configure it without downloading from CVS, I just downloaded bunch of .jar filles needed on my desktop folder JME, I tried to configure everything in step 10, but same error again…

Lots of lwjgl errors. Special thing about lwjgl that it needs native libraries attached to it, so you might want to double-check that you have those attached to your lwjgl.jar

ClassNotFound means that you forgot to add some of the jars to the classpath of the java VM.

I have the same problem when using Netbeans 6.0. When I run that same "Hello World" app via the "run" feature in Netbeans, it runs properly. However, when I click on the executable .jar produced in the "dist" folder, it does not run. I had a folder at "distlib" which contained all the required .jar files. When i used cmd (java -jar "HelloWorld.jar"), it gave me the exact same error.



It seems that there are errors with LWJGL, as the file lwjgl.jar was present in my "distlib" folder.



Can someone please help?



Thanks.

You need to use a more complex command line argument:



java -classpath dist/lib/lwjgl.jar;dist/lib/jinput.jar;(and all required jars) -Djava.library.path=./lib/ -jar HelloWorld.jar



Or something like that, where the ./lib directory contains the LWJGL.DLL file (assuming you are using Windows).

There is no any LWJGL.DLL, I downloaded JME from here https://jme.dev.java.net/servlets/ProjectDocumentList?folderID=418&expandFolder=418&folderID=0

the  jME jar version 1.0



There are no any .dll files, I just added them as aditional libraries to my project, there is no error in syntax, but It just can't run!

These are the files that should be in your jme/lib directory… you should try checking out jME from CVS at dev.java.net… Follow the instruction is the Wiki


jogg-0.0.7.jar        liblwjgl.jnilib  lwjgl.jar
OpenAL32.dll    jorbis-0.0.15.jar     liblwjgl.so      lwjgl_util_applet.jar
jinput-dx8.dll  junit-4.1.jar         liblwjgl64.so    mvn-lib-install
jinput-raw.dll  libjinput-linux.so    libopenal.so     openal.dylib
jinput.jar      libjinput-osx.jnilib  lwjgl.dll

OK, I take some time and read everything from http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_5.0_to_build_jme_and_jme-physics_2,

step by step, everything was fine, only the javadoc file of jme had some errors, anyway I managed to get



To run Tests and Lessons:



    *

      go to the menue-bar: Window → Projects

    *

      navigate for example to: jME-Physics_2 → …/test-interactive → com.jmetest.physics

    *

      rightclick on TestChooser.java: Run File


Just before coming to c) , but even thoug I succesfully managed to run TestChooser.java, I couldn't run any other file that was shown inside that program, I keep getting again some stupid error's about jgwl, Ill try to compile new project, and I will put the source of the SimpleGame in tehre, and see what would happen then...

Unbelieveable, I followed everything in there, c) Create, compile and run your own jME project with jME-Physics 2, I put the simplegame source, and SUCCESFULLY BUILD the project, and when I tried to run it this shit I get:



init:

deps-jar:

compile:

run:

2008.06.02 23:56:49 com.jme.app.BaseGame start

INFO: Application started.

2008.06.02 23:56:49 com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

2008.06.02 23:56:49 com.jme.system.PropertiesIO load

WARNING: Could not load properties. Creating a new one.

2008.06.02 23:56:49 class HelloWorld start()

SEVERE: Exception in game loop

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

        at java.lang.Runtime.loadLibrary0(Runtime.java:823)

        at java.lang.System.loadLibrary(System.java:1030)

        at org.lwjgl.Sys$1.run(Sys.java:75)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)

        at org.lwjgl.Sys.loadLibrary(Sys.java:84)

        at org.lwjgl.Sys.<clinit>(Sys.java:101)

        at org.lwjgl.opengl.Display.<clinit>(Display.java:111)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(Unknown Source)

        at com.jme.app.AbstractGame.getAttributes(Unknown Source)

        at com.jme.app.BaseGame.start(Unknown Source)

        at HelloWorld.main(HelloWorld.java:15)

2008.06.02 23:56:49 com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

2008.06.02 23:56:49 com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

2008.06.02 23:56:50 com.jme.app.BaseGame start

INFO: Application ending.

BUILD SUCCESSFUL (total time: 0 seconds)





I don't know what to do anymore, choose another 3d engine, FUCK :frowning:

The problem seems to be in the -Djava.library.path parameter. Please make absolutely sure you have that for your project also, not only set up for your main jME project.