Basic Question - Can run the examples command line but

Hello,

I have downloaded jME and can run the examples.  Using the long command line.  But now what?

How do I use jME in my programs? 



When I use:



import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;



it says that the packages do not exists.  Do I need to compile them to a jar file if so how?
Thanks,
Pete

Create jar files/libraries based on whatever compiler you use - netbeans/eclipse and then use them to create your own projects… you might find this link helpful:



http://www.jmonkeyengine.com/wiki/doku.php?id=getting_started



After that just go through the tutorials available on the link below and the examples bundled with jME



http://www.jmonkeyengine.com/wiki/doku.php?id=the_tutorials



And this is the user guide/wiki of all the functions, it expands your knowledge of jME functionality…



http://www.jmonkeyengine.com/wiki/doku.php?id=user_s_guide


Thank you.  I am currently just using the command line no IDE.

Do I need to create a jar file to use the engine? XD sorry I have no idea why I am finding this confusing. erm.



I get this error, I need to set my classpath(?) any ideas, I'm useing Ubuntu 7.10.

Exception in thread "main" java.lang.NoClassDefFoundError: java/library/path=//lib



When I run this command it works fine

java -D java.library.path=./lib -cp ./lib/:./target/ <packagename.demo_name>



Thanks,

Pete

remove the space after -D  :slight_smile: