You are welcome to try out the new jME3, and contribute patches and features! This document shows how to download, set up, build, and run the latest development version from the sources. (As of Spring 2010, we are in alpha.) These instructions work in NetBeans IDE 6 or better.
Note: In the following, always replace "~" with the path to your home directory.
Check out the sources from the repository. (The following NetBeans instructions are equivalent to executing cd ~/NetBeansProjects; svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme3
on the commandline.)
https://jmonkeyengine.googlecode.com/svn
trunk/engine
~/NetBeansProjects/jme3
The jme3 project opens in the Project window. It already includes a working ANT build script for building and running.
Look into the Libraries node and confirm that the project depends on the following libraries in the classpath:
jME3-natives-joal.jar lwjgl.jar gluegen-rt.jar jME3-lwjgl-natives.jar jinput.jar swing-layout-1.0.4.jar j-ogg-oggd.jar vecmath.jar stack-alloc.jar j-ogg-vorbisd.jar asm-all-3.1.jar jbullet.jar jheora-jst-debug-0.6.0.jar xmlpull.xpp3-1.1.4c.jar nifty*.jar eventbus-1.4.jar
Work in progress …
A jme3 application can either be deployed to the desktop (as Java Swing application) and web browser (as JNLP/WebStart or Applet), or to an Android phone. While the former is the default, switching to Android deployment can be done in a few steps.
src/android/
src/desktop
src/desktop_fx
That's it!
src/test/jme3test
folder.src/test/jme3test/model/TestHoverTank.java
and choose "Run" to run a sample. Sample code for cool features is in the src/test/jme3test
folder. A sample game can be found in src/games/jme3game/cubefield/CubeField.java
.
Tips:
If you are working on the jme3 sources:
~/NetBeansProjects/jme3/dist/javadoc
If you are working on a game project that depends on jme3:
~/NetBeansProjects/jme3/dist/javadoc
. Check "as relative path" and click select.~/NetBeansProjects/jme3/src
. Check "as relative path" and click select.This tip works for any third-party JAR library that you use. (You may have to download the javadoc/sources from their home page separately).
Sources used: BuildJme3, netbeans tutorial from forum