jME noob created NetBeans proj. from CVS repository jmetest package errors

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 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:


Mar 27, 2008 11:40:44 AM 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(

        at java.lang.Runtime.loadLibrary0(

        at java.lang.System.loadLibrary(

        at org.lwjgl.Sys$

        at Method)

        at org.lwjgl.Sys.doLoadLibrary(

        at org.lwjgl.Sys.loadLibrary(

        at org.lwjgl.Sys.<clinit>(

        at org.lwjgl.opengl.Display.<clinit>(

        at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(Unknown Source)

        at Source)

        at 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 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="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: -->

    <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=&quot;${libs}&quot;"/>

UMM, Those are the build scripts.

You need to right-click on project in NetBeans -> Properties -> Select Run -> Set classpath in VM options