Problem with jme v0.9

I used to work with jME v0.7 and everything worked fine.

Today I downloaded jME from the CVS as I did but I can't run any file because they will always say…



"The active editor does not contain a main type"



Any ideas?  :?



(Eclipse + jdk 1.5)

Maybe this post helps you understand the “main” stuff.

Configuring eclipse for jME is explained here.

thanks irrisor, I’ve read “A Started Guide - v2” but I found I can’t set Java Build Path as I did before (version 0.7).



at project folder -> right-click -> Property -> there is no “Java Build Path” button as usual



(see the pictures:



no “Java Build Path”





defference between v0.9 and v0.7

)

:slight_smile: This does not have anything to do with jME .7 or .9 - you did not check out jME as "Java Project" but as plain project. The easiest way to fix that is to delete your .9 jME project (in eclipse) and check out again as described in the guide (especially choose "new project configured with new project wirzard" and in the wizard choose "Java Project").

ok now I'm checking out…  XD

now i found another problem…

in every .java files, at the declared packages, always have an error

“the declared packages does not match the expected package src.com…”



let see the picture







changing declared package from “com.jme…” to “src.com.jme…” may help but maybe there are better ways?

Hi there Cinamond Rolls.

Well this is an editor setup issue, so there is a very simple solution.

This is what you need to do:

  1. Right click on jME v09 project and then click on Properties.
  2. On the config tree on the left of the Properties dialog, click on "Java Build Path".
  3. Select the "Source" tab.
  4. Add the "src" folder or select it.
  5. Then click the "OK" button.



    This will basicly define the project's source folder to be "src".

    Hope this help and have a nice day!

Thanks tGiantLabs

very cool jme