Hello jME troubleshooter gurus, I gave up on Eclipse for the package and classpath problems. Alternatively, I created a NetBeans project from the CVS repository wizardry in NetBeans. The jME NetBeans project compiles OK and the source file TestChooser.java runs OK from the build.xml target: run-testchooser. I cannot edit or do anything with any file under the package: jmetest under the src folder in the NetBeans files tab. The main error condition for all files is an inability to find package folders in the imports under: jmetest: package jmetest.* does not exist. I tried right-clicking the project folder name namely: jME and clicking the properties selection. The properties offer no better solution as all items are ghosted under the tab: Java Sources Classpath. Please advise, David.
Umm, I think I get what you are asking.
Clarity though: does the Jme Netbeans project run? (Right click --> run project)
TestChooser (and possibly) others aren't created until the project has been actually ran.
I believe I'm having the same issue as David. I am no ant wizard nor maven maven. Yes, jME does run from the Netbeans "Run" project however, trying to "run" individual files from src/jmetest/TutorialGuide (e.g. HelloSimpleGame) from the Netbeans src file tree does not.
Using the instructions outlined in the Netbeans install instructions to add a "run.single" action to the project.xml file under nbproject along with creating the "ide-file-targets.xml" file in the nbproject folder and trying to run individual ".java" files results in the following:
run-selected-file-in-src:
Mar 27, 2008 11:40:44 AM com.jme.app.BaseGame start
INFO: Application started.
Mar 27, 2008 11:40:44 AM com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
Mar 27, 2008 11:40:44 AM com.jme.system.PropertiesIO load
INFO: Read properties
Mar 27, 2008 11:40:44 AM class jmetest.TutorialGuide.HelloSimpleGame start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at org.lwjgl.opengl.Display.<clinit>(Display.java:111)
at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(Unknown Source)
at com.jme.app.AbstractGame.getAttributes(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at jmetest.TutorialGuide.HelloSimpleGame.main(Unknown Source)
Mar 27, 2008 11:40:44 AM jmetest.TutorialGuide.HelloSimpleGame cleanup
INFO: Cleaning up resources.
Mar 27, 2008 11:40:44 AM com.jme.app.BaseGame start
INFO: Application ending.
Actually your issue is a little different, just make sure you have the class path set; something like:
-Djava.library.path="/Volumes/Storage/Documents/Programs/_jME/jME_Physics_CVS/jmephysics/impl/ode/lib":"/Volumes/Storage/Documents/Programs/_jME/jME_CVS/jme/lib"
For OSX
or
-Djava.library.path="C:Documents and SettingsUserMy DocumentsMy Programs_jMEjME_CVSjmelib";"C:Documents and SettingsUserMy DocumentsMy Programs_jMEjME_Physics_CVSjmephysicsimplodelib"
For windows
(Notice the semi-colon delimeter for Windows vs. colon for OSX and Linux)
I believe java.library.path is set. build-import.xml has:
<project name="project" basedir=".">
<property name="name" value="jME"/>
...
<property name="seg" value="."/>
<property name="src" location="${seg}/src"/>
<property name="test" location="./junit"/>
<property name="libs" value="./lib"/>
while ide-file-targets.xml has:
<project basedir=".." name="jME-IDE">
<import file="../build-import.xml"/>
<!-- TODO: edit the following target according to your needs -->
<!-- (more info: http://www.netbeans.org/kb/55/freeform-config.html#compilesingle) -->
<target description="Run Single File" name="run-selected-file-in-src">
<fail unless="runclass">Must set property 'runclass'</fail>
<java classname="${runclass}" classpathref="classpath" fork="true">
<classpath path="${build}"/>
<jvmarg value="-Djava.library.path="${libs}""/>
</java>
</target>
UMM, Those are the build scripts.
You need to right-click on project in NetBeans -> Properties -> Select Run -> Set classpath in VM options