Hey,
I have a verry clear error that tells me I do not have the correct java version:
C:Program FilesJava Monkey Engine>ant dist-all
Buildfile: build.xml
init:
[echo] jmeKeyStore
compile:
[javac] Compiling 1480 source files to C:Program FilesJava Monkey Engineb
uild
[javac] javac: invalid target release: 1.5
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the compiler
is doing
[javac] -deprecation Output source locations where deprecated
APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source files
[javac] -bootclasspath <path> Override location of bootstrap class fil
es
[javac] -extdirs <dirs> Override location of installed extension
s
[javac] -d <directory> Specify where to place generated class f
iles
[javac] -encoding <encoding> Specify character encoding used by sourc
e files
[javac] -source <release> Provide source compatibility with specif
ied release
[javac] -target <release> Generate class files for specific VM ver
sion
[javac] -help Print a synopsis of standard options
[javac]
BUILD FAILED
C:Program FilesJava Monkey Enginebuild.xml:54: Compile failed; see the compil
er error output for details.
Total time: 3 seconds
This is my current version of java:
C:Program FilesJava Monkey Engine>java -version
java version "1.4.2_18"
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2_18-b06)
Java HotSpot™ Client VM (build 1.4.2_18-b06, mixed mode)
And Ant:
C:Program FilesJava Monkey Engine>ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
Well, the wierd thing is that I followed every according to the tutorial: http://www.jmonkeyengine.com/wiki/doku.php?id=chapter_1_-_getting_started
I "updated" from jdk1.6 to j2sdk1.4 and from jre1.6 to j2re1.4
Somehow its not ok this way…
I hope someone could help me out with this… Is the tutorial right about the version thing ?
I build the tutorial way: command line: ant dist-all
Geertings,
Squarc
You need at least version 1.5 for jME. 1.6 is fine too though.
So probably the wiki is outdated.
I'm probably wrong but:
isn't j2sdk1.4 a later sdk then jdk1.6
or am I misunderstanding things now :S??
no.
1.6 (or Java 6 as it's also called) comes after 1.4 (also called Java 2 1.4).
1.4 is pretty old by now.
ok, my bad…
I actually never heard of j2sdk1.4 so I thought it was a newer java or something… (j2 … )
thx for helping, I'm updating back to jdk6u11/jre6u11 now
Yeah Sun was going through a weird phase with the whole "2" thing back then.
I'd recommend using an IDE if you want to do some serious programming (though it's not required).
yeah I'm using NetBeans as IDE now…
I got the build working, so now I can use jme, but even the User manual pdf is verry outdated…
for instance I got a example class called TestSphere. so I copied it, read it, tried to build it and got an error that AlphaState(com.jme.scene.state.AlphaState) could not be found… So I searched the lib's of jme that I added to the project but I couldnt find a AlphaState anywhere… why are those user manuals/wiki so outdated :S??
is AlphaState renamed or something?
jme1 AlphaState -> jme2 BlendState
http://www.jmonkeyengine.com/wiki/doku.php?id=jme_to_jme2_changes
parts of the wiki have been updated to jme2 versions: http://www.jmonkeyengine.com/wiki/doku.php?id=learning_jme_2