To finish this tutorial you will need:
We will be installing the sources into a directory, we will just use jME2 as the name
Windows
Create a new folder called jME2
Linux
mkdir jME2
Team → Subversion → Checkout from the menu.Repository URL, usehttp://jmonkeyengine.googlecode.com/svn/trunk/
Next.trunk.Skip trunk and checkout only its content.jME2/jME2 location for Local FolderScan for NetBeans projects after checkout.Finishalso delete source under …Now that the sources have been downloaded, we need to compile them. Like already done, we had removed the maven project. That's because the maven build script is broken, but fortunately, jME also comes with a Ant script, which will perform the build steps for you.
Java free-form project. Nextsrc folder in Source foldersjunit folder from Source folders and add it to Test foldersNow we compile the project, test it, and generate Javadoc.
Clean and build.Test the project.Generate Javadoc.Run.It is OK if you see warnings, although errors are a problem.
Now that we have created the jME2 and jME2Physics libraries, these can be used in your projects. In this section, we'll guide you through the process of creating a new project with the right libraries.
jME2-Compile and jME2Physics-Compile. Confirm. jME2-Run and jME2Physics-Run. Confirm.Run, set the VM OPTIONS to:Windows
-Djava.library.path="jME2\jME2\lib\lwjgl\native\windows";"jME2\jME2Physics\impl\ode\lib"
Linux
-Djava.library.path="jME2/jME2/lib/lwjgl/native/linux":"jME2/jME2Physics/impl/ode/lib"
Where jME2/jME2 is the path to jME 2's SVN and jME2\jME2Physics is the path to jME Physics 2's SVN. (Native Library Explanation)
Now your project should be ready to work with.
*These libraries (and the ones added to the jME-Physics2 project) are the 'native' libraries; basically they allow Java to tap directly into your hardware (ie. Video Card) and/or to run assembly (direct CPU) instructions. The libraries are loaded at run-time (when application starts up) and every project that uses jME (and/or jME-Physics) will have to be 'told' where these libraries are by use of the library path statement.