Build Failed when compiling jME

Build Failed when compiling jME.



Hi, Right now I'm trying to install jME. Could I please get some help to fix the error that I have at the end of this. And could I someone please tell me the location of the compiler error file



Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.



C:Documents and SettingsCompaq_Administrator>cd c:projectsjme



C:projectsjme>ant dist-all

Buildfile: build.xml



init:

    [echo] jmeKeyStore



compile:

    [javac] Compiling 1384 source files to C:projectsjmebuild

    [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:projectsjmebuild.xml:46: Compile failed; see the compiler error output for

details.



Total time: 7 seconds

C:projectsjme>



Thank You.

Actually the error is this:

[javac] javac: invalid target release: 1.5



Which version of java are you using?

Here is the version of Java that I'm using.



C:Documents and SettingsCompaq_Administrator>java -version

java version "1.6.0_05-ea"

Java™ SE Runtime Environment (build 1.6.0_05-ea-b05)

Java HotSpot™ Client VM (build 1.6.0_05-ea-b05, mixed mode, sharing)

Try to get a version that is not ea (early access).

Could I get a link to the  java download file



oh and sorry for me being total noob

Here is the link:

http://java.sun.com/javase/downloads/index.jsp



You need JDK 6 Update 3.


oh and sorry for me being total noob

Come on, everyone was a noob at some point in time. ;)

Hey, well I'm back. I got some errors. I think I need to redo the Environment Variables.

Can you tell me what problems there are and a rough idea of how to fix it. Thanks. :slight_smile:

And again Thanks for the download link.



Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.



C:Documents and SettingsCompaq_Administrator>cd C:projectsjme



C:projectsjme>ant dist-all

Buildfile: build.xml



init:

    [echo] jmeKeyStore



compile:

    [javac] Compiling 1384 source files to C:projectsjmebuild

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:41: warning: s

un.misc.Service is Sun proprietary API and may be removed in a future release

    [javac] import sun.misc.Service;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:42: warning: s

un.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a

future release

    [javac] import sun.misc.ServiceConfigurationError;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:187: warning:

sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in

a future release

    [javac]            throws ServiceConfigurationError {

    [javac]                    ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:189: warning:

sun.misc.Service is Sun proprietary API and may be removed in a future release

    [javac]            Iterator displayProviders = Service.providers(SystemProv

ider.class);

    [javac]                                        ^

    [javac] C:projectsjmesrccomjmeutilloggingBetterFormatter.java:22: wa

rning: sun.security.action.GetPropertyAction is Sun proprietary API and may be r

emoved in a future release

    [javac]            .doPrivileged(new sun.security.action.GetPropertyAction(



    [javac]                                                  ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:57: w

arning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]        value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);



    [javac]                            ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:85: w

arning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]    String sResult = new sun.misc.BASE64Encoder().encode(value);

    [javac]                                  ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 7 warnings



dist-core:

      [jar] Building jar: C:projectsjmetargetjme.jar



BUILD FAILED

C:projectsjmebuild.xml:58: Problem creating jar: C:projectsjmetargetjme.j

ar (The system cannot find the path specified) (and the archive is probably corr

upt but I could not delete it)



Total time: 39 seconds

C:projectsjme>

Seems that either the directory c:projectsjmetarget does not exist, or the system cannot overwrite the file jme.jar, either way after correcting it, it should work fine.  :wink:

Well there was a jme folder in the main jme folder so I'm puzzled. I took the target file out of the duplicate jme file and placed it into the main jme file. The Compiling worked im just wondering if I got it correct because I tried the First jme test which is the Dynamic Smoker. I haven't tried any other tests.

Here is the Compiling Results:



Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.



C:Documents and SettingsCompaq_Administrator>cd C:projectsjme



C:projectsjme>ant dist-all

Buildfile: build.xml



init:

    [echo] jmeKeyStore



compile:

    [javac] Compiling 1384 source files to C:projectsjmebuild

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:41: warning: s

un.misc.Service is Sun proprietary API and may be removed in a future release

    [javac] import sun.misc.Service;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:42: warning: s

un.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a

future release

    [javac] import sun.misc.ServiceConfigurationError;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:187: warning:

sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in

a future release

    [javac]            throws ServiceConfigurationError {

    [javac]                    ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:189: warning:

sun.misc.Service is Sun proprietary API and may be removed in a future release

    [javac]            Iterator displayProviders = Service.providers(SystemProv

ider.class);

    [javac]                                        ^

    [javac] C:projectsjmesrccomjmeutilloggingBetterFormatter.java:22: wa

rning: sun.security.action.GetPropertyAction is Sun proprietary API and may be r

emoved in a future release

    [javac]            .doPrivileged(new sun.security.action.GetPropertyAction(



    [javac]                                                  ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:57: w

arning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]        value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);



    [javac]                            ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:85: w

arning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]    String sResult = new sun.misc.BASE64Encoder().encode(value);

    [javac]                                  ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 7 warnings



dist-core:

      [jar] Building jar: C:projectsjmetargetjme.jar



dist-terrain:

      [jar] Building jar: C:projectsjmetargetjme-terrain.jar



dist-audio:

      [jar] Building jar: C:projectsjmetargetjme-audio.jar



dist-awt:

      [jar] Building jar: C:projectsjmetargetjme-awt.jar



dist-effects:

      [jar] Building jar: C:projectsjmetargetjme-effects.jar



dist-model:

      [jar] Building jar: C:projectsjmetargetjme-model.jar



dist-collada:

      [jar] Building jar: C:projectsjmetargetjme-collada.jar



dist-editors:

      [jar] Building jar: C:projectsjmetargetjme-editors.jar



dist-font:

      [jar] Building jar: C:projectsjmetargetjme-font.jar



dist-gamestates:

      [jar] Building jar: C:projectsjmetargetjme-gamestates.jar



dist-scene:

      [jar] Building jar: C:projectsjmetargetjme-scene.jar



dist-xml:

      [jar] Building jar: C:projectsjmetargetjme-xml.jar



dist-all:



BUILD SUCCESSFUL

Total time: 1 minute 1 second

C:projectsjme>



Okay Here is the test now:



Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.



C:Documents and SettingsCompaq_Administrator>cd C:projectsjme



C:projectsjme>ant dist-test

Buildfile: build.xml



init:

    [echo] jmeKeyStore



compile:

    [javac] Compiling 1384 source files to C:projectsjmebuild

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:41: warning: s

un.misc.Service is Sun proprietary API and may be removed in a future release

    [javac] import sun.misc.Service;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:42: warning: s

un.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a

future release

    [javac] import sun.misc.ServiceConfigurationError;

    [javac]                ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:187: warning:

sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in

a future release

    [javac]            throws ServiceConfigurationError {

    [javac]                    ^

    [javac] C:projectsjmesrccomjmesystemDisplaySystem.java:189: warning:

sun.misc.Service is Sun proprietary API and may be removed in a future release

    [javac]            Iterator displayProviders = Service.providers(SystemProv

ider.class);

    [javac]                                        ^

    [javac] C:projectsjmesrccomjmeutilloggingBetterFormatter.java:22: wa

rning: sun.security.action.GetPropertyAction is Sun proprietary API and may be r

emoved in a future release

    [javac]            .doPrivileged(new sun.security.action.GetPropertyAction(



    [javac]                                                  ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:57: w

arning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]        value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);



    [javac]                            ^

    [javac] C:projectsjmesrccomjmexxmltypesSchemaBase64Binary.java:85: w

arning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a fu

ture release

    [javac]    String sResult = new sun.misc.BASE64Encoder().encode(value);

    [javac]                                  ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 7 warnings



compile-test:



dist-test:

    [echo] lib/jinput.jar lib/jogg-0.0.7.jar lib/jorbis-0.0.15.jar lib/junit-4.

1.jar lib/lwjgl.jar lib/lwjgl_util_applet.jar jme-audio.jar jme-awt.jar jme-coll

ada.jar jme-editors.jar jme-effects.jar jme-font.jar jme-gamestates.jar jme-mode

l.jar jme-scene.jar jme-terrain.jar jme-xml.jar jme.jar jmetest-data-cursor.jar

jmetest-data-images.jar jmetest-data-model.jar jmetest-data-skybox1.jar jmetest-

data-sound.jar jmetest-data-texture.jar

      [jar] Building jar: C:projectsjmetargetjmetest.jar

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-cu

rsor.jar because no files were included.

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-im

ages.jar because no files were included.

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-mo

del.jar because no files were included.

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-sk

ybox1.jar because no files were included.

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-so

und.jar because no files were included.

      [jar] Warning: skipping jar archive C:projectsjmetargetjmetest-data-te

xture.jar because no files were included.



BUILD SUCCESSFUL

Total time: 19 seconds

C:projectsjme>

Out of curiosity, why are you not using an IDE like Eclipse or Netbeans and save the trouble of compiling and running?

Uh okay.  I didn't really know that you should use that easier method than following the guide. Thanks I'll try it out.