Need a Little Help

I apologize ahead of time for my ignorance when it comes to jME. I am new to it, and to just outside classes in general. I am very knowledgeable in java, but I need a little help. I am using Eclipse and am running java version 1.6.0_01. I followed the "getting started" tab on the main page, but came up with a few things that apparently didnt work correctly because i am not able to run any of the tests. Everything ran smoothly up until step 10 when i noticed that i had all of the jar files except



lwjgl-applet.jar

lwjgl-test.jar

lwjgl-util.jar



so i continued and ran the TestTeopot file, only to come up with over 4000 errors and 200 warnings. The Error states following:



May 23, 2007 7:14:54 PM com.jme.app.BaseGame start

INFO: Application started.

May 23, 2007 7:14:54 PM com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

May 23, 2007 7:14:54 PM com.jme.system.PropertiesIO load

WARNING: Could not load properties. Creating a new one.

java.lang.Error: Unresolved compilation problems:

The method sort(Object[], Comparator) in the type Arrays is not applicable for the arguments (DisplayMode[], LWJGLPropertiesDialog.DisplayModeSorter)

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

Syntax error, parameterized types are only available if source level is 5.0

Syntax error, parameterized types are only available if source level is 5.0

The type Comparator is not generic; it cannot be parameterized with arguments <DisplayMode>

Syntax error, parameterized types are only available if source level is 5.0



at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(LWJGLPropertiesDialog.java:152)

at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:191)

at com.jme.app.BaseGame.start(BaseGame.java:49)

at jmetest.renderer.TestTeapot.main(TestTeapot.java:61)

May 23, 2007 7:14:55 PM com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Exception in thread "main" java.lang.Error: Unresolved compilation problems:

Syntax error, 'for each' statements are only available if source level is 5.0

Syntax error, 'for each' statements are only available if source level is 5.0

cleanupStore cannot be resolved



at com.jme.util.TextureManager.doTextureCleanup(TextureManager.java:586)

at com.jme.app.BaseSimpleGame.cleanup(BaseSimpleGame.java:549)

at com.jme.app.BaseGame.start(BaseGame.java:81)

at jmetest.renderer.TestTeapot.main(TestTeapot.java:61)



Any help would be nice. Thanks a ton!




i did follow it exactly and it didnt work…

could you explain to me how to do the second option remmebering that i am new to it?

look at the wiki, you will see an entry into setting up eclipse…



make sure you download the jars which contain lwjgl, these can be easily got from the jmonkey home page under the download nightly build section



personally, i create a jme project and copy the source into it. i also have a libs project containing whatever ext libs i need, in this case the lwjgl ones . be careful not to reference the jme.jars if you take this approach

i have figured it out. Thank you very much. I really appreciate it!

Hey, would you mind posting how you figured it out? I am having a similer problem, and would love to know the fix. Thanks!