I am a beginner, sorry bothering you with noob question but i have tried to use cvs with eclipse 2.1.2 and when i build the project i got this message :
uildfile: C:javaeclipseworkspacejmebuild.xml
init:
compile:
[javac] Compiling 274 source files to C:javaeclipseworkspacejmebuild
[javac] BUILD FAILED: file:C:/java/eclipse/workspace/jme/build.xml:29: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 437 milliseconds
Another thing, i have not found "jl030.jar" in the lib dir.
Thank you, sorry for my english, i am french :)
PS : I have worked with 0.5 jME and it works fine ! it is a great job ! may be i will write some french tutorial when i will be better using jME :)
Sifilys: I’ve never been able to get ant to work with eclipse pre-3.0. I would recommend upgrading (if you can) to the newest Eclipse. I’m using 3.0M8, which you will see is very different than what you are used to, but things have greatly improved.
If you can’t upgrade for some reason, try running ant in the command line window.
Any chance of an update? I’m using Eclipse 3.0.2 and after following the part about the “nature” tag the explorer view looks totally different (I was just beginning to find my way around!). I abandoned the guide at that point. I guess all the grey icons refer to empty directories I’ve seen mentioned in other posts?
Maybe someone could also advise on the following. Excuse any dumb questions and please be detailed in any answers…
I figure I need to create a “run configuration” if I want to run one of the test/tutorial examples that I’m currently viewing in Eclipse, correct? My attempts so far result in “NoClassDefFoundError”. NB I have already built jme from the command line and ran several tests but I’d like to launch from Eclipse while I study the code (prob in debug mode as well)
How do I go about creating my own copy of the test src so I can modify while keeping the originals. I suspect just create new project and actually copy src files but do I need to define my own package?
I created a new project to help find my way around Eclipse and noticed jme already included in the list of libraries. No surprise there because I had already built it and placed the jars etc in ~/Library/Java/Extensions, one of the few places Mac Java looks for default libraries. Now, what to do if I always want to use the latest build without manually copying files over to the Extensions dir?
Hi! Yeah, my poor guide is quite outdated at this point. I’m not surprised at all you had problems following it. So, I’m gonna rewrite the guide in the next few days. I’ll give it a go if I have some spare time at work tomorrow, heh.
As for creating a copy of the test sources, I’d advise going to wherever you’ve put jME and simply copying the src/jmetest dir to somwhere else, like the root jME directory. Not a particularly elegant solution, but it’s simple and gets the job done.
For your third question, do you mean using the latest CVS build of jME in another Eclipse project? If so, that’s reasonably simple:
Go to Project -> Properties
Select the Java Build Path entry on the left
Go to the Projects tab
Click on Add...
Select jME in the list and click Okay
[/list:o]
That should set things up properly. If all goes well, that'll also link in the Javadocs included in the source files.
I got everything to work just fine and have run the tests. Now, I’m trying to learn Eclipse, but I have run into problems.
I’m using Eclipse 3.0.0 on Windows XP. Checking out jme from CVS in Eclipse works fine. However, when I look at the project in the Package Explorer it is riddled with errors. So, I did the following steps:
From the project -> Properties -> Java Build Path -> Libraries tab.
I included the following jars: target/jme.jar, /lib/jogg-0.0.5.jar, /lib/jorbis.0.0.12.jar, lib/lwjgl_fmod3.jar, /lib/lwjgl.jar.
After I hit okay, it rebuilds (at least, that’s what I think it’s doing), but the errors don’t go away.
I realize that from the command line build instructions, that I’m leaving out an action that corresponds to the element: -Djava.library.path=./lib
I’ve learned that -D is used for setting a system property, and Eclispe Help has pointed me to