Hello all!
I went through all the stepps outlined in http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_5.0_to_build_jme_and_jme-physics_2 to set up the jME libraries. Then I tried the first tutorial:
package firstjmetest;
import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;
public class Main extends SimpleGame
{
public Main()
{
}
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
Main app = new Main();
app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
app.start();
}// end main(.)
protected void simpleInitGame()
{
Box b = new Box("myBox", new Vector3f(0,0,0), new Vector3f(1,1,1));
rootNode.attachChild(b);
}// end simpleInitGame()
}
Everything compiled fine. I got the dialog w/ the monkey face asking what resolution I wanted to use. Chose the resolutio I had, clicked ok. A black screen window popped up w/ nothing in it, then disappeared.
Output indicates the following stack trace:
java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:69)
at org.lwjgl.opengl.ARBBufferObject.glBindBufferARB(ARBBufferObject.java:42)
at com.jme.scene.state.lwjgl.records.RendererRecord.setBoundVBO(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLRenderer.predrawGeometry(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLRenderer.draw(Unknown Source)
at com.jme.scene.batch.TriangleBatch.draw(Unknown Source)
at com.jme.scene.TriMesh.draw(Unknown Source)
at com.jme.scene.Spatial.onDraw(Unknown Source)
at com.jme.scene.Node.draw(Unknown Source)
at com.jme.scene.Spatial.onDraw(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLRenderer.draw(Unknown Source)
at com.jme.app.SimpleGame.render(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at firstjmetest.Main.main(Main.java:35)
What am I doing wrong?
I've got java 1.5 sdk and am running Windows XP