jME2 with NetBeans 6.5

Hi ! I am new to jMonkeyEngine.



  I have try to follow this http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_6.1_for_jme_2.0 article to setup my NetBeans 6.5, But I am stop at "jME2 Compilation" Step.



  When I try to create a new project, NetBeans wizard won't let me do that as article say. either I change another location or another name (I can't use the exist ant script while set the same location with downloaded svn files.)



  Does anyone using NetBeans 6.5/jME2 and know the correctly step to setup ?  Sorry for my poor English >_<.

Hi, welcome to jME :wink:



That is actually a new wiki and I have yet to try it out, it looks like the path was "jme 2/jme 2" and the author probably meant it to be "jme2/jme2" judging by the rest of the document. I have edited, so give it a shot now and let me know if it works :).

It's don't work… I get the error message as first post. I am attach the screen shot this time.

hello.

i'm also new here, but i will tell you what i did with eclipse, when i couldn't do my jme2 working, like tutorial says.



i just made a jme2 folder on desktop, use tortoisesvn, download all from http://jmonkeyengine.googlecode.com/svn/

then i just made NORMAL project, with name jME2 (clear project, just with lib and buildpath like eclipse did itself).

then i opened total commander, and pasted everything from trun folder (desktop/jme2/trunk) into jME2 project. here you CAN  NOT overwrite files, you need to skip files which you have in project already.

after that i did all like in tutorial:

http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_eclipse_to_build_jme_2&s[]=jme2&s[]=eclipse

from "Resolving the Build Path Issues" till end, and same with physics (also folder on desktop, svn -> link from tutorial, new clear project, copy/paste, and all).

i know it's for eclipse not netbeans, but i'm sure it could work like that there as well;)

just try, combine:) good luck!

adrenalbooster, with NetBeans' built in Ant and versioning support it is much better to just follow the tutorial on the wiki. I'm sure that eclipse offers similar features as plug ins, so you might want to reconsider if what you have done was the best solution for you. With what you do, you'd lose both versioning (comfortable jME updates) and the Ant build process (hassle-free compilation and packaging of jME libraries).



lincy, the error message states that you have already created the project - just go ahead and open it!

(Hint: It's in "Documents and Settings/lincy/My Documents/NetBeans Projects/jME2/jME2")

:frowning:

I was gonna say "just go ahead and open it!"



:stuck_out_tongue:

:slight_smile:

I try it already … But receive lot's error and build fail. I think the NetBeans 6.1 vs 6.5 was really difference. >_<



I am still try & error.(ing)…

lincy said:

I try it already .... But receive lot's error and build fail. I think the NetBeans 6.1 vs 6.5 was really difference. >_<

I am still try & error.(ing).....

lincy,

I am new to jME/jME2 and new to netbeans (I use jBuilder). I use nb 6.5 and I followed the tutorial instructions and it worked perfectly for me.

The error message in your project creation window says the project folder is already owned by another project.
That's your first problem.

Try this:
delete previous/bad jME projects from NB
create new folders like this: C:jME2jME2
in netbeans get trunk from SVN put it all into C:jME2jME2
your path to jME2 source should look like this: C:jME2jME2srccomjme
then follow the setup instructions at the point where you create a free-form project
It should work fine with netbeans 6.5

Good luck!

Yeah, when I first started I had to go through the old tutorial 3-4 times; due to user errors…

GL, and just keep trying, you will make it if you do :).

Kropotkin said:

lincy said:

I try it already .... But receive lot's error and build fail. I think the NetBeans 6.1 vs 6.5 was really difference. >_<

I am still try & error.(ing).....

lincy,

I am new to jME/jME2 and new to netbeans (I use jBuilder). I use nb 6.5 and I followed the tutorial instructions and it worked perfectly for me.

The error message in your project creation window says the project folder is already owned by another project.
That's your first problem.

Try this:
delete previous/bad jME projects from NB
create new folders like this: C:jME2jME2
in netbeans get trunk from SVN put it all into C:jME2jME2
your path to jME2 source should look like this: C:jME2jME2srccomjme
then follow the setup instructions at the point where you create a free-form project
It should work fine with netbeans 6.5

Good luck!



It's was same. The problem was, when I checkout source from SVN, The NetBeans will create an project. so, I still get the error message :

Project folder is already owned by NetBeans project jMonkey Engine (jar).

any idea  :?

I think the NetBeans 6.1 vs 6.5 was really difference

I have used NetBeans since v4 and their upgrade procedure is pretty good...

I really think you need to go just open the folder you downloaded from the svn into, report any errors in compiling here...
(basically, follow the tutorial :))


then follow the setup instructions at the point where you create a free-form project

This is the part of that tutorial that I think you are missing.

Here is my step (I just wipe out everything I done before, delete the folder, then start over).


  1. Create C:jME2, C:jME2jME2, C:jME2jME2Physics folders


  2. Open Fresh NetBeans 6.5



    Please see the attach screenshot




  1. In NetBeans. Choise Menu as follow ->

        Versioning -> Subversion -> Checkout

        to check out jME2 SVN source



        See step as attach-screenshot as 04/05


  2. In NetBeans. as step 3, to check out jME2Physics SVN source



        See step as attach-screenshot as 06/07
  1. Try to create new java free-form project as tutorial say…

        But, well get the error message as I say before .



        See attach-screenshot 08/09


  2. So, Give up to create an new project, Try to OPEN EXIST project…



        See attach-screenshot 10/11
  1. Try to clean an build the project :



NetBeans: Executing 'C:Program FilesJavaapache-maven-2.0.9binmvn.bat clean install'
NetBeans:      JAVA_HOME =C:Program FilesJavajdk1.6.0_10
Scanning for projects...
Building jMonkey Engine
   task-segment: [clean, install]
[clean:clean]
[build-helper:add-test-source {execution: add-test-source}]
Test Source directory: C:jME2jME2src added.
[resources:resources]
Using default encoding to copy filtered resources.
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl/2.0rc1/lwjgl-2.0rc1.pom
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/2.0rc1/lwjgl-2.0rc1.pom
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl_util_applet/2.0rc1/lwjgl_util_applet-2.0rc1.pom
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl_util_applet/2.0rc1/lwjgl_util_applet-2.0rc1.pom
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl_util/2.0rc1/lwjgl_util-2.0rc1.pom
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl_util/2.0rc1/lwjgl_util-2.0rc1.pom
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1.pom
Downloading: http://repo1.maven.org/maven2/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1.pom
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/gluegen/gluegen-rt/1.0b06/gluegen-rt-1.0b06.pom
Downloading: http://repo1.maven.org/maven2/net/java/dev/gluegen/gluegen-rt/1.0b06/gluegen-rt-1.0b06.pom
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/jinput/jinput/SNAPSHOT/jinput-SNAPSHOT.pom
Downloading: http://www.jmonkeyengine.com/maven//jorbis/jorbis/0.0.17/jorbis-0.0.17.pom
Downloading: http://repo1.maven.org/maven2/jorbis/jorbis/0.0.17/jorbis-0.0.17.pom
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl/2.0rc1/lwjgl-2.0rc1.jar
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/2.0rc1/lwjgl-2.0rc1.jar
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl_util_applet/2.0rc1/lwjgl_util_applet-2.0rc1.jar
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl_util_applet/2.0rc1/lwjgl_util_applet-2.0rc1.jar
Downloading: http://www.jmonkeyengine.com/maven//org/lwjgl/lwjgl_util/2.0rc1/lwjgl_util-2.0rc1.jar
Downloading: http://repo1.maven.org/maven2/org/lwjgl/lwjgl_util/2.0rc1/lwjgl_util-2.0rc1.jar
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1.jar
Downloading: http://repo1.maven.org/maven2/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1.jar
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/gluegen/gluegen-rt/1.0b06/gluegen-rt-1.0b06.jar
Downloading: http://repo1.maven.org/maven2/net/java/dev/gluegen/gluegen-rt/1.0b06/gluegen-rt-1.0b06.jar
Downloading: http://www.jmonkeyengine.com/maven//net/java/dev/jinput/jinput/SNAPSHOT/jinput-SNAPSHOT.jar
Downloading: http://www.jmonkeyengine.com/maven//jorbis/jorbis/0.0.17/jorbis-0.0.17.jar
Downloading: http://repo1.maven.org/maven2/jorbis/jorbis/0.0.17/jorbis-0.0.17.jar
[ERROR]BUILD ERROR
Failed to resolve artifact.

Missing:
1) org.lwjgl:lwjgl:jar:2.0rc1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.lwjgl -DartifactId=lwjgl -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.lwjgl -DartifactId=lwjgl -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) org.lwjgl:lwjgl:jar:2.0rc1

2) org.lwjgl:lwjgl_util_applet:jar:2.0rc1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.lwjgl -DartifactId=lwjgl_util_applet -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.lwjgl -DartifactId=lwjgl_util_applet -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) org.lwjgl:lwjgl_util_applet:jar:2.0rc1

3) org.lwjgl:lwjgl_util:jar:2.0rc1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.lwjgl -DartifactId=lwjgl_util -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.lwjgl -DartifactId=lwjgl_util -Dversion=2.0rc1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) org.lwjgl:lwjgl_util:jar:2.0rc1

4) net.java.dev.jogl:jogl:jar:1.1.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=net.java.dev.jogl -DartifactId=jogl -Dversion=1.1.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=net.java.dev.jogl -DartifactId=jogl -Dversion=1.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) net.java.dev.jogl:jogl:jar:1.1.1

5) net.java.dev.gluegen:gluegen-rt:jar:1.0b06

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=net.java.dev.gluegen -DartifactId=gluegen-rt -Dversion=1.0b06 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=net.java.dev.gluegen -DartifactId=gluegen-rt -Dversion=1.0b06 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) net.java.dev.gluegen:gluegen-rt:jar:1.0b06

6) net.java.dev.jinput:jinput:jar:SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=net.java.dev.jinput -DartifactId=jinput -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=net.java.dev.jinput -DartifactId=jinput -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) net.java.dev.jinput:jinput:jar:SNAPSHOT

7) jorbis:jorbis:jar:0.0.17

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=jorbis -DartifactId=jorbis -Dversion=0.0.17 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=jorbis -DartifactId=jorbis -Dversion=0.0.17 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) com.jmonkeyengine:jme:jar:2.0-SNAPSHOT
          2) jorbis:jorbis:jar:0.0.17


7 required artifacts are missing.

for artifact:
  com.jmonkeyengine:jme:jar:2.0-SNAPSHOT

from the specified remote repositories:
  com.jmonkeyengine (http://www.jmonkeyengine.com/maven/),
  central (http://repo1.maven.org/maven2)


For more information, run Maven with the -e switch
Total time: 16 seconds
Finished at: Wed Dec 17 18:41:48 CST 2008
Final Memory: 6M/10M



But, I saw the lwjgl's *jar was in C:jME2jME2liblwjgl already...
I am also try to Test project and Generate Javadoc, All get the same error message.

And, I still trying the following step. Create the Library. But since I haven't succeed build the project, then I can't find the /build and /JavaDoc ...

Any idea ?

OK now I can see your problem.

jME contains maven support to a certain degree, and hence NetBeans automagically recognizes jME as a maven project. This is why it won't allow an ant project to be created.

But then the jME/jMEPhysics libraries can not be downloaded, resulting in the error you are seeing in screen 11.

Unfortunately I don't know a good solution to this problem, two possible workarounds would be:


  • uninstall maven support from NetBeans' plugins management

  • OR remove the pom.xml (maven config file) from the jME and jMEPhysics directories.



You could also try and use jME and jMEPhysics as maven projects in NetBeans, but I don't know anything about how you'd do that.

OR follow the proper tutorial…


Preparing Libraries
  mvn install:install-file -Dfile=lwjgl/lwjgl.jar -DgroupId=org.lwjgl -DartifactId=lwjgl -Dversion=2.0rc1 -Dpackaging=jar
  mvn install:install-file -Dfile=lwjgl/lwjgl_util.jar -DgroupId=org.lwjgl -DartifactId=lwjgl_util -Dversion=2.0rc1 -Dpackaging=jar
  mvn install:install-file -Dfile=lwjgl/lwjgl_util_applet.jar -DgroupId=org.lwjgl -DartifactId=lwjgl_util_applet -Dversion=2.0rc1 -Dpackaging=jar
  mvn install:install-file -Dfile=lwjgl/jinput.jar -DgroupId=net.java.dev.jinput -DartifactId=jinput -Dversion=SNAPSHOT -Dpackaging=jar
  mvn install:install-file -Dfile=jorbis/jorbis-0.0.17.jar -DgroupId=jorbis -DartifactId=jorbis -Dversion=0.0.17 -Dpackaging=jar
  mvn install:install-file -Dfile=jogl/jogl.jar -DgroupId=net.java.dev.jogl -DartifactId=jogl -Dversion=1.1.1 -Dpackaging=jar
  mvn install:install-file -Dfile=jogl/gluegen-rt.jar -DgroupId=net.java.dev.gluegen -DartifactId=gluegen-rt -Dversion=1.0b06 -Dpackaging=jar

http://www.jmonkeyengine.com/wiki/doku.php?id=jme_maven_setup

lincy,



If you'd like, I can upload my nb/jME2 installation to drop.io.

You can then dl, unzip and copy.

You should have working nb projects for jME and jME2Physics.

From this point, continue with the instructions from…


  • jME2 Compilation … done

    – Create a New Project … done

    – Compile Sources  <<< Continue from this step



    PM me if you're interested

Kropotkin: please don't offer that, while I'm sure your intentions are nothing but good; lincy will not be able to update from the SVN after that.  Furthermore it doesn't solve the problem… it's just a temporary band-aid at best…



If your REALLY want to help him, lets figure out how to solve his problems :slight_smile:



"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime." Lao Tzu.

basixs said:

Kropotkin: please don't offer that, while I'm sure your intentions are nothing but good; lincy will not be able to update from the SVN after that.  Furthermore it doesn't solve the problem... it's just a temporary band-aid at best....

If your REALLY want to help him, lets figure out how to solve his problems :)

"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime." Lao Tzu.


lincy, my offer still stands. You're free to decide which path you want to take.
You can figure out what went wrong with netbeans later. At least you'll be able to get started with jME2.

:D