How to use jme in jbuilder2005?

    Hello



    I have added the jars of jme to jbuilder2005. But I cannot just run a basic program.Here is the source code.



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.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);

            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

        }

    }





        Here is the message:



    message: Application started.



    2006-4-13 15:04:11 com.jme.system.PropertiesIO <init>



    message: PropertiesIO created



    2006-4-13 15:04:11 com.jme.system.PropertiesIO load



    warning: Could not load properties: java.io.FileNotFoundException: properties.cfg (the system cannot find the file。)



    java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException



    at com.jme.app.AbstractGame.getAttributes(Unknown Source)



    at com.jme.app.BaseGame.start(Unknown Source)



    at helloworld.HelloWorld.main(HelloWorld.java:19)



    2006-4-13 15:04:42 com.jme.app.SimpleGame cleanup



    message: Cleaning up resources.



    2006-4-13 15:04:42 com.jme.input.InputSystem getKeyInput



    warning: KeyInput is null, insure that a call to createInputSystem was made before getting the devices.



    2006-4-13 15:04:42 com.jme.input.InputSystem getMouseInput



    warning: MouseInput is null, insure that a call to createInputSystem was made before getting the devices.



    2006-4-13 15:04:42 com.jme.app.BaseGame start



    message: Application ending.



        Can I use jme without CVS?



        Thanks for any help anyone can give me!

Of course you can use jME without CVS.



The output you posted indicates that you miss lwjgl.jar in your path - be sure to add all jars from the lib folder to your classpath. The next problem you might be facing is the native libraries (dll, so, jnilib) -> specify the lib folder as native library folder, also: -Djava.library.path=[path to lib]

to irrisor:

    thanks very much.  :smiley: :smiley: :smiley: :smiley:

Hey llama, you gonna introduce us to your kenfolk? :-p



darkfrog