import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;
/**
* Started Date: Jul 20, 2004<br><br>
* Simple HelloWorld program for jME
*
* @author Jack Lindamood
*/
public class HelloWorld extends SimpleGame{
public static void main(String[] args) {
HelloWorld app = new HelloWorld(); // Create Object
// Signal to show properties dialog
app.setConfigShowMode(ConfigShowMode.AlwayShow);
app.start(); // Start the program
}
protected void simpleInitGame() {
// Make a box
Box b = new Box("Mybox",
new Vector3f(0,0,0),
new Vector3f(1,1,1));
rootNode.attachChild(b); // Put it in the scene graph
}
}
to work because it get an error in ConfigShowMode.AlwayShow
Perhaps you need to import ConfigShowMode? If you're not using an IDE like eclipse I HIGHLY recommend you do so. It will highlight errors and suggest solutions, which seems to be what you need.
Oct 31, 2008 7:41:05 PM com.jme.app.BaseGame start
INFO: Application started.
Oct 31, 2008 7:41:05 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Oct 31, 2008 7:41:05 PM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
Oct 31, 2008 7:41:05 PM class HelloNode start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
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:128)
at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:682)
at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:231)
at com.jme.app.BaseGame.start(BaseGame.java:64)
at HelloNode.main(HelloNode.java:22)
Oct 31, 2008 7:41:05 PM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Oct 31, 2008 7:41:05 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
Oct 31, 2008 7:41:05 PM com.jme.app.BaseGame start
INFO: Application ending.