Setting up project in eclipse - no class def found error-although jar libs exist

hello,



i am so much confused installing this thing, first i installed java 64 bit, and it tells me that 64bit amd isnt supported



ok, anyhow, i got the jme checkout from cvs running, the tests are working





so, i thought setting up a new projekt is just a few clicks



i went to the hello world page and i did the following:


  1. created a new java project
  2. added all the jars from the jme cvs project to my new projects library
  3. additionally i added the source path to the jme/src



    so, my problem now is, that the contents of the jme packages dont appear



    i can use



    import com.jme.app. but then there is no class … one of the errors is:





    import com.jme.app.SimpleGame;

    import com.jme.scene.shape.Box;

    import com.jme.math.Vector3f;



    The import com.jme.app.SimpleGame cannot be resolved





    so, what else do i have to configure that the eclipse ide knows where the class definition is to be found ?!?!?



    sorry if that is an easy and nerving question, but i havent any more ideas for setting up a single project



    is that topic covered in a tutorial ? i just found netbeans tutorials ,…



    sorry sorry sorry for being too dumb!



    but thanks in adv

http://www.jmonkeyengine.com/wiki/doku.php

Look for  Installing jME, there is a video tutorial to set up eclipse.

thank you very much for reply



but the point is, it is everything working fine …



i just cannot getr a new project setted up



i also checked out the physics project, and it tells me:



Severity and Description   Path   Resource   Location   Creation Time   Id
ApplyMode cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 225   1270838037579   47792
ApplyMode cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 233   1270838037579   47799
BlendState cannot be resolved to a type   jME Physics 2/test-interactive/com/jmetest/physics   Utils.java   line 66   1270838037502   47732
CombinerFunctionRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 226   1270838037579   47793
CombinerFunctionRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 234   1270838037579   47800
CombinerOperandRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 228   1270838037579   47795
CombinerOperandRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 230   1270838037579   47797
CombinerOperandRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 236   1270838037579   47802
CombinerOperandRGB cannot be resolved   jME Physics 2/test-interactive/com/jmetest/physics   TestGenerateTerrain.java   line 238   1270838037579   47804





i do not understand what additional jars to add, where can i find the jme.jar ?
i have set up the jme_required user libraries ... but it seems there is one jar left, that should contain
the jme definitions ....

the tutorials are just fine, but somehow i can not get A BLANK NEW PROJECT running,
the jme tests are working fine ...

it is just one last thing i did not get, linking to the CORRECT jar files ... containing the jme base classes

help help help

There is also a video tutorial to set up a new blank project :slight_smile:



you have two options:

Either you simply add the jme project as a dependant project to your new java project, (see video)

Or you create the jme-jars with the ant build.xml and then add those jars to your project.



I would suggest adding the project like in the video, that way you can easily browse the source / examples.



setting up a new project which uses jme in eclipse:

will try that, thank you for patience

in fact, i already added the jme project to the physics project, but that is my problem, eclipse does

not recognise the package names, and thus cant compile … uargh … but i will give it another try, perhaps i have to use a special eclipse version !?

In your first post you wrote CVS, this would be the old jme1 version.

You need to check out from svn (google code) to get jme2 which is compatible with jmephysics

ok, thank you, it is now working with the svn project



and sertting the native path in the lwjgl is all i had to do :smiley:



now trying the physics, thanks a lot  :mrgreen:



support is all i needed :wink: