How can I compile this HelloWorld example right from command line (http://code.google.com/p/jmonkeyengine/source/browse/trunk/src/jmetest/TutorialGuide/HelloWorld.java)
I can
You need to set the classpath in the compile line… If you built from the ant script, most likely your compiled classes are in a directory called <jme_dir>/bin, then to compile the HelloWolrd you need a line similar to the next:
javac -classpath <jme_dir>/bin jmetest/HelloWorld.java
I actually don
The build forlder should be enough for the classpath. Try that
Thanks, It compiled with no erros.
But I couldn
you didnt specify a classpath when starting HelloWorld.
see step 6 http://www.jmonkeyengine.com/wiki/doku.php?id=getting_started
Once more
C:Program FilesJMEbuild>java -Djava.library.path=…lib -cp …liblwjgllwjg
l.jar;…libjorbisjorbis-0.0.17.jar;…targetjme.jar;…targetjme-awt.jar;…
targetjme-effects.jar;…targetjme-model.jar;…targetjme-audio.jar;…targe
tjme-terrain.jar;…targetjmetest.jar;…targetjmetest-data-model.jar;…targ
etjmetest-data-images.jar;…targetjmetest-data-skybox1.jar;…targetjmetest-
data-sound.jar;…targetjmetest-data-texture.jar jmetest.TutorialGuide.HelloWor
ld
Nov 6, 2008 2:33:38 PM com.jme.app.BaseGame start
INFO: Application started.
Nov 6, 2008 2:33:38 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Nov 6, 2008 2:33:38 PM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
Nov 6, 2008 2:33:38 PM class jmetest.TutorialGuide.HelloWorld start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
BUT on lib folder I do have a lwjgl folder.
OK… I solved it by adding to the library path "liblwjglnativewin32"
Now I got the following error "java.lang.NoClassDefFoundError: org/lwjgl/util/glu/GLU". I
No I am still getting "java.lang.NoClassDefFoundError: org/lwjgl/util/glu/GLU" with jwjgl 1.4 and 2
How can I solve it?
Again my command line is:
java -Djava.library.path=…lib -cp …liblwjgllwjg
l.jar;…libjorbisjorbis-0.0.17.jar;…targetjme.jar;…targetjme-awt.jar;…
targetjme-effects.jar;…targetjme-model.jar;…targetjme-audio.jar;…targe
tjme-terrain.jar;…targetjmetest.jar;…targetjmetest-data-model.jar;…targ
etjmetest-data-images.jar;…targetjmetest-data-skybox1.jar;…targetjmetest-
data-sound.jar;…targetjmetest-data-texture.jar jmetest.TutorialGuide.HelloWor
ld
you need to also list the lwjgl_util.jar (which contains the GLU class) in the classpath
It worked!
Thank you all