Tutorial:MakingJarFile
From FANG
This is the version of the tutorial with screenshots. Click here if you want to view the text only version of this tutorial.
1. Using Eclipse Europa, right click on the your project in the Package Explorer. Select Export....
2. Select JAR as the type to export.
3. In the JAR Export window, select the packages you want to export. Put checks by the boxes in your project for
- fang
- fang.resources
- all packages you wrote for your game
Make sure you have selected the checkboxes
- Export generated class files and resources
- Export java source files and resources
- Compress the contents of the JAR file
- Add directory entries
Next to JAR file, click on Browse to select where you want to save the jar file. The convention is to name the JAR file yourgame.jar where you replace yourgame with your actual game name.
4. Click on Next until you get to JAR Packaging Options. Make sure you have selected
- Export files with compile warnings
- Build projects if not built automatically
5. Click on Next until you get to JAR Manifest Specification. If you added a main method to your game to make it runnable as an application, then push the Browse button by Main class and select the class you wrote which extends GameLoop.
6. Click on Finish. If the JAR file exports with only warnings then it worked. If there were errors, then the JAR file was not successfully exported. First, make sure your game actually compiles and runs. If it does and you still can't export try right clicking on the project name and selecting refresh, then try to export the jar file again. If you are still having problems, consult the FAQ.
- This page was last modified on 29 November 2007, at 21:41.
- This page has been accessed 550 times.
- Privacy policy
- About FANG
- Disclaimers
- Powered by MediaWiki!


















