Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  jME2 compilation Error...  (Read 6519 times)
0 Members and 1 Guest are viewing this topic.
Offline jiapei100

Junior Member





« Posted 2009-10-06 00:05:51 »


I'm trying to compile jME2 but obtained loads of error messages.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
Buildfile: C:\jiapei\MyPrograms\Eclipse\jme\build.xml
init:
     [echo] jmeKeyStore
-gen-rtlogprops:
compile:
    [javac] Compiling 831 source files to C:\jiapei\MyPrograms\Eclipse\jme\build
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\system\DisplaySystem.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:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\system\DisplaySystem.java:42: warning:



..........


    [javac]                                                         ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\util\logging\BetterFormatter.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:\jiapei\MyPrograms\Eclipse\jme\build.xml:71: Compile failed; see the compiler error output for details.

Total time: 6 seconds


What should I do to make jME2 successfully built please....

Best Regards
JIA

Welcome to Vision Open
http://www.visionopen.com
Offline gouessej
« Reply #1 - Posted 2009-10-10 12:19:02 »

Hi

These are only warnings, there is something else. Please show us the errors.

Offline jiapei100

Junior Member





« Reply #2 - Posted 2009-10-10 23:57:11 »


Sorry, I'm now listing something more here

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
Buildfile: C:\jiapei\MyPrograms\Eclipse\jme\build.xml
init:
     [echo] jmeKeyStore
-gen-rtlogprops:
compile:
    [javac] Compiling 1558 source files to C:\jiapei\MyPrograms\Eclipse\jme\build
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\system\DisplaySystem.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:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\system\DisplaySystem.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:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\system\DisplaySystem.java:192: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
    [javac]             throws ServiceConfigurationError {
    [javac]                    ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\controls\binding\KeyboardBinding.java:34: package org.lwjgl.input does not exist
    [javac] import org.lwjgl.input.Keyboard;
    [javac]                       ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\controls\binding\MouseButtonBinding.java:34: package org.lwjgl.input does not exist
    [javac] import org.lwjgl.input.Mouse;
    [javac]                       ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\dummy\DummyKeyInput.java:35: package org.lwjgl.input does not exist
    [javac] import org.lwjgl.input.Keyboard;
    [javac]                       ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\dummy\DummyMouseInput.java:37: package org.lwjgl.input does not exist
    [javac] import org.lwjgl.input.Cursor;
    [javac]                       ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\dummy\DummyMouseInput.java:38: package org.lwjgl.input does not exist
    [javac] import org.lwjgl.input.Mouse;
    [javac]                       ^
    [javac] C:\jiapei\MyPrograms\Eclipse\jme\src\com\jme\input\joystick\lwjgl\LWJGLJoystick.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




Hi

These are only warnings, there is something else. Please show us the errors.

Welcome to Vision Open
http://www.visionopen.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2009-10-12 10:00:26 »

Sorry I use JOGL (not LWJGL) with JMonkeyEngine and I use a very dirty way to make it work in Eclipse, I do this:

Quote
JOGL

Download the JOGL binaries for your platform here.
Now, I'm going to give you a dirty (bad practice) but straightforward and simple way of installing it. Follow these steps:

    * Unzip the downloaded file
    * Go to the "lib" directories
    * Copy the JAR files into your "jre/lib/ext" directory
    * Copy the native libraries (.so files under Linux and Solaris, .jnilib under Mac, .DLL under Windows) into your "jre/lib/bin" directory under Windows or "jre/lib/i386" for others operating systems

A better practice is to add the path of the directory containing JOGL libraries into the CLASSPATH environment variable and into the LD_LIBRARY_PATH environment variable (Linux and Solaris), into the DYLD_LIBRARY_PATH environment variable (Mac) or into the PATH environment variable (Windows).

Please find a cleaner way of doing it with LWJGL.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (40 views)
2014-09-24 16:13:29

Pippogeek (31 views)
2014-09-24 16:12:22

Pippogeek (21 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (29 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06

BurntPizza (55 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!