Physics Library

i am using the http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_6.1_for_jme_2.0 guide



when i get down to the bottom at the jME2Physics-Compile Library part the guide throws me off a little


  • i dont understand were jME Physics 2 SVN is it never had me make one <-- thinking this might be the doc but not sure



here are the folders that i have
JME2 <- here i did the svn
jME2Physics <- here is the the Physics svn
jME2PCom <- the doc i made in the steps before

if any one could tell me exacly what needs to go into the jME2Physics-Compile and jME2Physics-Run

Thanks

ok i think i did it but im not sure when i tryed to make the standard set up

public class Main extends SimpleGame {
 
   public static void main(String[] args) {
      Main main = new Main();
      main.setConfigShowMode(ConfigShowMode.ShowIfNoConfig);
      main.start();
   }
 
   void simpleInitGame {
 
   }
 
}


i get a error

simpleInitGame() in jmonkey.Main cannot override simpleInitGame() in com.jme.app.BaseSimple Game;


anyone know about this one

you cant lower the visibility of the method so it has to be at least protected

ok i got it working but now i cant get

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.

im getting this error

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.

thats a very common problem, you need to point java to the native library location, search the forum for more infos about it

are u talking about the VM i cant find it anywhere

Search the forums for "no lwjgl in java.library.path" and you will find some explanation.