This is a no-frills approach to installing and setting up jME 2.x for those who either do not want to use Eclipse SVN Plugins or have trouble using them.

Download the following:

Install the following:

Setting Up and Building jME 2.x:

Create Eclipse Workspace:

  1. Open Eclipse
  2. Create Eclipse Workspace or point to previous version of Eclipse Workspace

Checkout jME 2.x via SVN:

  1. Open Windows Explorer and find your Eclipse Workspace
  2. Right Click on the Eclipse Workspace and select Checkout SVN from Menu
  3. Copy the following line to the SVN Host field: http://jmonkeyengine.googlecode.com/svn/trunk/
  4. Verify that the Checkout Location is your Eclipse Workspace and Click OK

Create jME2 Project in Eclipse:

  1. After download is complete, go into Eclipse and Click File → New → Project and name it “jme2”
  2. Select Create from Source and use the Browse Button and select the SVN download location of jME2
  3. Click through all Default settings to Finish creating the project

Add Eclipse SWT Library to Project:

  1. Right Click on jme2 in the Eclipse Package Explorer pane and select Properties → Java Build Path → Libraries
  2. Click Add Library → User Library → New and type Eclipse_SWT in the dialogue box and Click OK
  3. Highlight Eclipse_SWT and Click Add JARs and add the swt.jar found under the lib directory for Windows in the jME2 download Directories
  4. Click Apply/OK

Build jME 2.x into JARs:

  1. Right Click build.xml in the Eclipse Package Explorer pane and select Run As → “2 Ant Build”
  2. In the dialoge window, Deselect Compile[default] and Select dist-all
  3. Click Apply and Run (this will output all jME2 JAR files to the target directory in the jME 2 download location

Verify jME 2.x with jME 2.x Tests:

  1. In the Eclipse Package Explorer, expand the “src” branch and find the “jmetest” branch and expland that
  2. Right Click TestChooser.java and Select Properties → Run/DeBug Settings → New
  3. Select Java Applicaton and OK
  4. In the displayed dialogue, Click on the Arguments Tab and modify the following argument and insert it into the VM Arguments field: -Djava.library.path=<path to jME2 download location\lib\lwjgl\native\win32>
  5. Click Apply and OK
  6. Right Click TestChooser.java and select Run As → Java Application and you should now be able to select and run any of the multitude of jME 2.x Tests and experience the wonder that is jME! :-)

Addendum:

From here, jME2 can be incorporated in Projects by either adding it to the Source Path of new projects or creating a “JME2_Required” Library (in the same manner as creating the Eclipse_SWT Library above except using the jME 2 JARs that were created under “Build jME 2.x into JARs”) and attaching it to a Project through Properties.

Enjoy!


/var/www/wiki/data/pages/downloading_and_installing_jme_2.x.txt · Last modified: 2009/07/28 18:44 (external edit)  
Recent changes · Show pagesource · Login

Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki

subscribe to jME latest jme headlines


site design by bleedcrimson designs © 2008