Hello All
I have been trying to get jME set up within Netbeans 6.0 and have run into some problems which I was hoping someone could help me sort out.
I have been following the wiki instructions for setting up jME with Netbeans 5.0 (and 5.5) which I appreciate are instructions for a different Netbeans version to the one I am using however I thought that the differences wouldnāt or shouldnāt be a problem. Maybe they are?
I have followed the instructions and I have ended up with a java project called jME (built using an existing source).
When I āclean and build itā I get the following output:
[pre]
clean:
Deleting directory C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
Deleting directory C:Program FilesJavaJMonkey Engine StuffJME_CVSjmedatadoc
init:
jmeKeyStore
Created dir: C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
Created dir: C:Program FilesJavaJMonkey Engine StuffJME_CVSjmedatadoc
compile:
Created dir: C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuildcom
Copying 28 files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuildcom
Copied 104 empty directories to 72 empty directories under C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuildcom
Compiling 1387 source files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
import sun.misc.Service;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
import sun.misc.ServiceConfigurationError;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:187: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
throws ServiceConfigurationError {
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:189: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
Iterator displayProviders = Service.providers(SystemProvider.class);
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
.doPrivileged(new sun.security.action.GetPropertyAction(
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);
^
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
String sResult = new sun.misc.BASE64Encoder().encode(value);
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 warnings
BUILD SUCCESSFUL (total time: 25 seconds)
[/pre]
When I ātestā it I get the following output:
[pre]
init:
jmeKeyStore
compile:
Compiling 1387 source files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
import sun.misc.Service;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
import sun.misc.ServiceConfigurationError;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:187: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
throws ServiceConfigurationError {
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:189: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
Iterator displayProviders = Service.providers(SystemProvider.class);
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
.doPrivileged(new sun.security.action.GetPropertyAction(
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);
^
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
String sResult = new sun.misc.BASE64Encoder().encode(value);
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 warnings
compile-test:
Compiling 248 source files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
Note: C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrcjmetestTestChooser.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 122 files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuildjmetest
BUILD SUCCESSFUL (total time: 17 seconds)
[/pre]
And when I run it, I get the following output and the chosen test demo runs.
[pre]
init:
jmeKeyStore
compile:
Compiling 1387 source files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
import sun.misc.Service;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
import sun.misc.ServiceConfigurationError;
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:187: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
throws ServiceConfigurationError {
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmesystemDisplaySystem.java:189: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
Iterator displayProviders = Service.providers(SystemProvider.class);
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
.doPrivileged(new sun.security.action.GetPropertyAction(
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);
^
C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
String sResult = new sun.misc.BASE64Encoder().encode(value);
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 warnings
compile-test:
Compiling 248 source files to C:Program FilesJavaJMonkey Engine StuffJME_CVSjmebuild
Note: C:Program FilesJavaJMonkey Engine StuffJME_CVSjmesrcjmetestTestChooser.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
run-testchooser:
07-Jan-2008 15:22:48 jmetest.TestChooser start
INFO: Composing Test listā¦
07-Jan-2008 15:22:49 jmetest.TestChooser find
INFO: Searching for Demo classes in ājmetestā.
07-Jan-2008 15:22:49 com.jme.scene.Node <init>
INFO: Node created.
07-Jan-2008 15:22:55 com.jme.app.BaseGame start
INFO: Application started.
07-Jan-2008 15:22:55 com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
07-Jan-2008 15:22:55 com.jme.system.PropertiesIO load
INFO: Read properties
07-Jan-2008 15:23:00 com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
07-Jan-2008 15:23:00 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
07-Jan-2008 15:23:00 com.jme.system.PropertiesIO save
INFO: Saved properties
07-Jan-2008 15:23:00 com.jme.app.BaseSimpleGame initSystem
INFO: jME version 1.0
07-Jan-2008 15:23:00 com.jme.renderer.lwjgl.LWJGLRenderer <init>
INFO: LWJGLRenderer created. W: 640H: 480
07-Jan-2008 15:23:00 com.jme.app.BaseSimpleGame initSystem
INFO: Running on: ati2dvag
Driver version: 6.14.10.6618
ATI Technologies Inc. - ATI Mobility Radeon X1400 x86/SSE2 - 2.0.5883 WinXP Release
07-Jan-2008 15:23:00 com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
07-Jan-2008 15:23:00 com.jme.util.lwjgl.LWJGLTimer <init>
INFO: Timer resolution: 1000 ticks per second
07-Jan-2008 15:23:00 com.jme.scene.Node <init>
INFO: Node created.
07-Jan-2008 15:23:00 com.jme.scene.Node <init>
INFO: Node created.
07-Jan-2008 15:23:00 com.jme.scene.Node attachChild
INFO: Child (FPS label) attached to this node (FPS node)
07-Jan-2008 15:23:01 com.jme.scene.Node attachChild
INFO: Child (sphere) attached to this node (rootNode)
07-Jan-2008 15:23:01 com.jme.scene.Node attachChild
INFO: Child (cloth) attached to this node (rootNode)
07-Jan-2008 15:23:04 com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
07-Jan-2008 15:23:04 com.jme.app.BaseGame start
INFO: Application ending.
BUILD SUCCESSFUL (total time: 30 seconds)
[/pre]
So from the above, I am assuming that everything is fine so far.
I have omitted the jME Physics 2 steps as right now I donāt need to use it.
Now, again following the tutorial for using the compiled cvs version of jME in my own project, I have ended up with the following project structure (see image)ā¦
Below is my code for the HelloWorld tutorial - there are no required imports as my project cannot find the correct classes.
[pre]
/*
- To change this template, choose Tools | Templates
- and open the template in the editor.
*/
package org.redboffin.gs.tutorials;
/**
*
-
@author Red Boffin
*/
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
}
}
[/pre]
output when I try to run the 'HelloWorld' tutorial:
[pre]
init:
deps-clean:
Deleting directory C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1build
clean:
init:
deps-jar:
Created dir: C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1buildclasses
Compiling 1 source file to C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1buildclasses
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:13: cannot find symbol
symbol: class SimpleGame
public class HelloWorld extends SimpleGame {
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:18: cannot find symbol
symbol : variable SimpleGame
location: class org.redboffin.gs.tutorials.HelloWorld
app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:19: cannot find symbol
symbol : method start()
location: class org.redboffin.gs.tutorials.HelloWorld
app.start(); // Start the program
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:24: cannot find symbol
symbol : class Vector3f
location: class org.redboffin.gs.tutorials.HelloWorld
Box b = new Box("Mybox", new Vector3f(0, 0, 0), new Vector3f(1, 1, 1));
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:24: cannot find symbol
symbol : class Vector3f
location: class org.redboffin.gs.tutorials.HelloWorld
Box b = new Box("Mybox", new Vector3f(0, 0, 0), new Vector3f(1, 1, 1));
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:24: internal error; cannot instantiate javax.swing.Box.<init> at javax.swing.Box to ()
Box b = new Box("Mybox", new Vector3f(0, 0, 0), new Vector3f(1, 1, 1));
C:Documents and SettingsRed BoffinMy DocumentsMy ProjectsGSGS 0.0.1srcorgredboffingstutorialsHelloWorld.java:25: cannot find symbol
symbol : variable rootNode
location: class org.redboffin.gs.tutorials.HelloWorld
rootNode.attachChild(b); // Put it in the scene graph
7 errors
BUILD FAILED (total time: 0 seconds)
[/pre]
I am obviously doing something wrong but I can't tell from the tutorials where I am going wrong.
Can anyone help me get jME working within my project within Netbeans 6.0 and once I have got it working with your help, I'd be happy to write it up as a guide for future reference on the wiki.
Thank you for reading this far.
Red Boffin