Monday, December 29, 2008

Installing FengGUI and JME Physics for a Game 3D in Java #3

Now we want to set up these technologies to help us develop our 3D game.  Remember, that the eclipse version I am using is Ganymede.

Here is how to install FengGUI and  JME Physics  

FengGUI:

Download FengGUI at: 
http://sourceforge.net/project/showfiles.php?group_id=178317

You should unzip it and copy all of the jar files into your lib folder.  Set your build path to have eclipse point to the new jar files.

JME Physics:

In eclipse, select Java>new Project->cvs->projects from CVS
 
Host: cvs.dev.java.net
Repository path: /cvs
User: guest
Password: leave blank
Connection type: pserver
Click save password and select finish

This would be the same cvs repository that you used to checkout JME.  So if you have already checked out JME, then you would already have this information in eclipse.

In the Package Explorer right-click the jMEphysics2 project → Properties → Java Complier and un-check Enable project specific settings.
To add ODEJava to jMEphysics2, right-click the jMEphysics2 project → Properties → Libraries tab → Add Library… → User Library → Next → User Libraries… → New…. In the pop-up enter ODEJava, click OK → Add JARs…, browse to jMEphysics2/impl/ode/lib/ and select odejava-jni.jar → Open. Expand odejava-jni.jar and select Native library location → Edit… → Workspace… → expand to jMEphysics2/impl/ode/lib → OK → OK → OK. Now check ODEJava and click Finish.
 
To add the JME physics to your project, go to the properties for the project using the JME physics, select java build path->projects tab->add->select jmephysics and press okay. 
 
Go To #4

0 comments: