As a complete Java newbie, this is probably the most basic of questions. I’m using Netbeans 4.1 and I have a really basic application that just creates a box:
public class Main extends SimpleGame {
/** Creates a new instance of Main */
public Main() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Main app = new Main(); // Create Object
app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
app.start(); // Start the program
}
protected void simpleInitGame() {
// Make a box
Box box = new Box("Mybox",
new Vector3f(0,0,0),
new Vector3f(1,1,1));
rootNode.attachChild(box);
}
}
I can compile the source ok with Netbeans but running the app is a whole different story. I added the location of the JAR and DLLs files to the Run project settings using the options:
-Djava.library.path=C:jdkjrelib -cp C:jdkjrelib
But when I run I only get a successful build:
init: deps-jar: Compiling 1 source file to C:DevelopmentJavaApplication1buildclasses compile: run: BUILD SUCCESSFUL (total time: 0 seconds)[/build]
Obviously I’m missing something. Any suggestions appreciated!
Thanks[code]init:
deps-jar:
Compiling 1 source file to C:DevelopmentJavaApplication1buildclasses
compile:
run:
BUILD SUCCESSFUL (total time: 0 seconds)[/build]
Obviously I’m missing something. Any suggestions appreciated!
Thanks