Building first program

Hi, I'm new to jme, but very excited about the possibilities.

I've installed jme into eclipse and it works fine, but I'm not sure where I write my own classes.



I basically have a folder 'jme' containing a 'src' folder with hundreds of classes and demos like the torus.

It also contains 'build','data','jnlp','junit','lib','target','www' and some .xml files too.

It also uses JRE 1.5 as well as 'jME required' library.



So if i wanted a separate project that also uses jme, how should I go about it, since I don't need all those demos and other things?



Thanks


Hey. You will need to be sure to setup your classpath correctly, then take a look at the flagrush tut in the wiki. The short answer is extend a class in src/com/jme/app/ like SimpleGame

colin-java said:

I've installed jme into eclipse and it works fine, but I'm not sure where I write my own classes.

So if i wanted a separate project that also uses jme, how should I go about it, since I don't need all those demos and other things?



  • Create jME project in Eclipse by checking out jME source as described in this tutorial.

  • Create a new (second) Java project in Eclipse (this will be your game).

  • Set up the build path for your new project by: right-click your project → Properties → Projects tab → Add.. → check jME → OK → OK.

  • Start adding classes to this new project and see if they work. For starters perhaps just try to replicate some of these examples in the WiKi. This will show you if you have the environment set up correctly and also familiarizes you with jME a bit more slowly. FlagRush as suggested by Trussel is a good tutorial to follow, but you might just experiment a bit before that... with this 'Learning jME' stuff



Most of all have fun and don't bite off more than you can chew.. so that it would not dampen your spirit in the very beginning... jME truly is a lot of fun.. Just take your time and make sure you understand what you do in your classes...