Hi, all, please do help.
I have been trying to recompile jME 2.0.1 for quite a long time.
There is always an error message which stops at line 71
memoryMaximumSize="${javac.maxmem}" debug="${javac.debug}"/>
at build.xml
I tracked into it, which told me ${javac.maxmem} = 256m ${javac.debug} = true
what's wrong? How to recompile it?
Cheers
JIA Pei
What is the error message
Hi, Thank you so much for your kind and prompt reply.
The error messages are:
Buildfile: C:jiapeiMyProgramsEclipsejmebuild.xml
init:
[echo] jmeKeyStore
-gen-rtlogprops:
compile:
[javac] Compiling 831 source files to C:jiapeiMyProgramsEclipsejmebuild
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Service;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:42: warning:
..........
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
[javac] .doPrivileged(new sun.security.action.GetPropertyAction(
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 100 errors
[javac] 6 warnings
BUILD FAILED
C:jiapeiMyProgramsEclipsejmebuild.xml:71: Compile failed; see the compiler error output for details.
Any suggestions??
Cheers
JIA
are you using a downloaded zip release from Google Code or did you checkout the project via SVN?
If you're using Eclipse, make sure you are doing the following:
- right click build.xml, select Run As -> "2 Ant Build..."
- select the compile and dist-all boxes (choose doc as well if you'd like the javadocs)
- click Apply -> Run, the .jar's will end up in the target folder in your project
Hi, thank you for your prompt reply.
Actually, I removed all the default libraries that jME2 relies on. And add JOGL 2.0 libraries and other staffs back into jME. Which makes the current result --- namely, fail to be compiled.
I'm now trying to rebuild
1) build-colladabind.xml
2) build-junit.xml
Both failed and was pointing to this line
memoryMaximumSize="${javac.maxmem}" debug="${javac.debug}">
What I've done is just to port everything directly into Eclipse and then there are 4 .xml files right there.
Afterewards, I right clicked each .xml and did "ant build".
So, did you every try JOGL 2.0 build with jME?
Cheers
JIA Pei
Hi, thank you.
1) I am using SVN version.
2) And now, I select the compile and dist-collada, but failed with the following error messages:
Buildfile: C:jiapeiMyProgramsEclipsejmebuild.xml
init:
[echo] jmeKeyStore
-gen-rtlogprops:
compile:
[javac] Compiling 1558 source files to C:jiapeiMyProgramsEclipsejmebuild
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Service;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.ServiceConfigurationError;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:192: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] throws ServiceConfigurationError {
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputcontrolsbindingKeyboardBinding.java:34: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Keyboard;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputcontrolsbindingMouseButtonBinding.java:34: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Mouse;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyKeyInput.java:35: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Keyboard;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyMouseInput.java:37: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Cursor;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyMouseInput.java:38: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Mouse;
.......
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[javac] String sResult = new sun.misc.BASE64Encoder().encode(value);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 100 errors
[javac] 8 warnings
BUILD FAILED
C:jiapeiMyProgramsEclipsejmebuild.xml:71: Compile failed; see the compiler error output for details.
What can I do please?
Cheers
JIA Pei
sbook said:
are you using a downloaded zip release from Google Code or did you checkout the project via SVN?
If you're using Eclipse, make sure you are doing the following:
- right click build.xml, select Run As -> "2 Ant Build..."
- select the compile and dist-all boxes (choose doc as well if you'd like the javadocs)
- click Apply -> Run, the .jar's will end up in the target folder in your project
What platform are you using? If I recall correctly, there was a problem with Macs not having that library available.
Check the following thread, it may help:
http://www.jmonkeyengine.com/forum/index.php?topic=9231.0
Other than that, regarding the line where the error is reported, I reckon that must be the line where the 'javac' task is closed. Sometimes it just means that you have problems with the 'javac' task, not necessarily in that line.
I hope that helps.
Thanks very much.
I'm using WindowsXP+Eclipse 3.5.1
I'm not using MAC
jjmontes said:
What platform are you using? If I recall correctly, there was a problem with Macs not having that library available.
Check the following thread, it may help:
http://www.jmonkeyengine.com/forum/index.php?topic=9231.0
Other than that, regarding the line where the error is reported, I reckon that must be the line where the 'javac' task is closed. Sometimes it just means that you have problems with the 'javac' task, not necessarily in that line.
I hope that helps.
I should have posted something more here.
jME building error messages are
Buildfile: C:jiapeiMyProgramsEclipsejmebuild.xml
init:
[echo] jmeKeyStore
-gen-rtlogprops:
compile:
[javac] Compiling 1558 source files to C:jiapeiMyProgramsEclipsejmebuild
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Service;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.ServiceConfigurationError;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:192: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] throws ServiceConfigurationError {
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputcontrolsbindingKeyboardBinding.java:34: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Keyboard;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputcontrolsbindingMouseButtonBinding.java:34: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Mouse;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyKeyInput.java:35: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Keyboard;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyMouseInput.java:37: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Cursor;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputdummyDummyMouseInput.java:38: package org.lwjgl.input does not exist
[javac] import org.lwjgl.input.Mouse;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:39: package net.java.games.input does not exist
[javac] import net.java.games.input.Rumbler;
.....
It looks like jME2 can't detect lwjgl, which I absolutely added into the build path. By the way, I'm using the newest lwjgl . Also, I added lwjgl_util.jar and lwjgl_util_applet.jar as well.
It's quite strange that Eclipse IDE doesn't show any red cross, which means all files should be able to be correctly compiled. However, when I try to "ant build" the build.xml, I obtained the above error messages.
Can you please help?
Thank you very much !!!
Best Regards
JIA Pei
did you set the native library for lwjgl.jar?
Wow, hi, thank you so much for your reply..
I've got no idea how to setup the native library path for lwjgl.jar yet.
But, I added a folder containing lwjgl.dll and lwjgl.lib( I put both under the same directory) into my environment variable path. Namely, open an WindowsXP command prompt and type
$ set PATH
I can see that directory directly.
So, do you mean that I've got to specify this directory from within that build.xml file?
Well, I think you are probably correct. Please do let me know how to specify the native library.
Thanks.
JIA Pei
Eggsworth said:
did you set the native library for lwjgl.jar?
if you use eclipse, check out the video tutorials
http://www.jmonkeyengine.com/wiki/doku.php?id=video_tutorial_-_setting_up_eclipse_to_build_jme_2
its the easiest way to get started in minutes.
to give LWJGL.jar its native library in eclipse
1.right click on your project
2.select "Properties"
3. if it is not already selected, on the right hand column, click "Java Build Path"
4. Click on the libraries tab
5. Find the LWJGL.jar in this list (if it isnt there, that is your first problem.)
6. click the little arrow next to lwjgl.jar to expand its information
7. Click on "Native Library Location(none)" to select it
8. click "Edit" on the right hand side and then workspace
9. go into your JME2 project
10. expand lib -> lwjgl -> native -> and click on "windows" folder there
11. click 'ok" "ok" "ok"
now your project should hopefully work
Hi,
Core-Dump and Eggsworth:
Thank you so much for your kind help. This does make me much clearer.
But in my case, I removed all embedded libraries downloaded with jME2 SVN.
I would like to use self-built JOGL2.X and self-built lwjgl newest version.
There seems to be no need to do so, but I really wanna be compatible with JOGL2.X, that's why I want to do this.
I was guessing that build.xml of jME2 SVN needs to be revised a bit to make the users able to pick up their own junit, jogl, lwjgl, etc...
So, any further help?
Thank you so much.
JIA Pei
Yes, I tested already.
jME2.0-svn permits me to use my own junit and swt, but whether I would like to use my own
1) JOGL 2.0 with some modifications on the original jME2.0 code
2) lwjgl
3) jorbis
jME will report errors.
I'm pretty sure my own JOGL 2.0 contains javax.media.opengl.XXXXX
because I can open the file with zip(rar) to see what's inside, those .class are just there.
However, I just kept obtaining the following error messages
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmerendererjoglJOGLCamera.java:37: package javax.media.opengl does not exist
[javac] import javax.media.opengl.GL2;
...
I really would like to know, how can I use jME2.X with my own jogl, lwjgl, or jorbis?
Cheers
JIA Pei
Now, things move a bit.
I only have 7 error message this time. After deleting "pom.xml" and "mvn-lib-install.sh".
It seems that this time, it's reported by Eclipse that lwjgl couldn't find the jinput's corresponding native codes.
Am I right?
What's more, it seems from within Eclipse IDE, I can't "ant build" the whole project with native requirement.
Namely, from within Eclipse IDE, Visual Studio C compile won't be inspired to compile those native codes.
So, it seems "ant build" from within a Visual Studio Tools Command Prompt is a must.
Any further help?
Cheers
JIA
Buildfile: C:jiapeiMyProgramsEclipsejmebuild.xml
init:
[echo] jmeKeyStore
-gen-rtlogprops:
compile:
[javac] Compiling 1558 source files to C:jiapeiMyProgramsEclipsejmebuild
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Service;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.ServiceConfigurationError;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:192: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
[javac] throws ServiceConfigurationError {
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:39: package net.java.games.input does not exist
[javac] import net.java.games.input.Rumbler;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:53: cannot find symbol
[javac] symbol : class Rumbler
[javac] location: class com.jme.input.joystick.lwjgl.LWJGLJoystick
[javac] private Rumbler[] rumblers;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmexaudioopenalOpenALAudioTrack.java:40: warning: sun.audio.AudioStream is Sun proprietary API and may be removed in a future release
[javac] import sun.audio.AudioStream;
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmesystemDisplaySystem.java:195: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
[javac] Iterator<SystemProvider> displayProviders = Service.providers(SystemProvider.class);
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:62: package net.java.games.input does not exist
[javac] net.java.games.input.Controller jinputController = (net.java.games.input.Controller) targetField.get( controller );
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:63: cannot find symbol
[javac] symbol : class Rumbler
[javac] location: class com.jme.input.joystick.lwjgl.LWJGLJoystick
[javac] Rumbler[] rumblers = jinputController.getRumblers();
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:64: cannot find symbol
[javac] symbol : class Rumbler
[javac] location: class com.jme.input.joystick.lwjgl.LWJGLJoystick
[javac] this.rumblers = new Rumbler[getAxisCount()];
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:67: cannot find symbol
[javac] symbol : class Rumbler
[javac] location: class com.jme.input.joystick.lwjgl.LWJGLJoystick
[javac] Rumbler rumbler = rumblers[i];
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeinputjoysticklwjglLWJGLJoystick.java:83: cannot find symbol
[javac] symbol : class Rumbler
[javac] location: class com.jme.input.joystick.lwjgl.LWJGLJoystick
[javac] Rumbler rumbler = rumblers[axis];
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
[javac] .doPrivileged(new sun.security.action.GetPropertyAction(
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
[javac] value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);
[javac] ^
[javac] C:jiapeiMyProgramsEclipsejmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[javac] String sResult = new sun.misc.BASE64Encoder().encode(value);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
[javac] 8 warnings
BUILD FAILED
C:jiapeiMyProgramsEclipsejmebuild.xml:71: Compile failed; see the compiler error output for details.
Total time: 12 seconds
your error is whatever is happening on line 71 of build.xml
Eggsworth said:
your error is whatever is happening on line 71 of build.xml
we've come full circle to his first post! this is line 71:
memoryMaximumSize="${javac.maxmem}" debug="${javac.debug}"/>
How much RAM do you have?
thanks for your answering.
In my Eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx1024m
In the build.xml
<property name="javac.maxmem" value="256m" />
Is 256m enough?
Rgds
JIA
sbook said:
Eggsworth said:
your error is whatever is happening on line 71 of build.xml
we've come full circle to his first post! this is line 71:
memoryMaximumSize="${javac.maxmem}" debug="${javac.debug}"/>
How much RAM do you have?
256 is fine… you didn't change the build.xml to read 256m, right?