Basic Question - Can run the examples command line but


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.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?

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:

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

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

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>



remove the space after -D  :slight_smile: