How to Make a Game Into a JAR File
The Java archive -- or JAR -- format enables users to compress Java class and executable files into a single container. Because of the JAR format's ability to store and compress multiple files into one, it is commonly used to package games and programs on mobile devices. If you have a Java game that you'd like to use on your mobile device, you can compress it into a single JAR file with the help of some free utilities.
Instructions
-
Executable Jar Maker
-
1
Download a free copy of Executable Jar Maker to package your Java games into a JAR file. Extract the program into an empty folder. Right-click on the file, and highlight the "Extract All" option in the context menu that appears. Click on the "Extract" button in the dialog box that appears.
-
2
Launch Executable Jar Maker. Click on the application's "Java to Jar" button, if you'll be inputting a Java game into the program. You can also use Java class files. Click on the "Class to Jar" option.
-
-
3
Click on the program's "Browse" button to import your source file into the program. Click on the "Start" button to export your game into a JAR file.
JavaCanner
-
4
Download a free copy of JavaCanner to compress your Java games into a single Jar file. Launch JavaCanner.
-
5
Click on the application's "Set Main Class File" button to import your class file into JavaCanner. Click on the "Set Manifest file" if you wish to add a list of your game's contents.
-
6
Click on the "Add Another File" button to import additional files for your game. Click on the "Create JAR" button to generate your JAR file.
Jar Ajar
-
7
Download and install a free copy of Jar Ajar to package your Java games into a single Jar file. Launch Jar Ajar after you've installed it.
-
8
Click on the "Load Build File" button to open your program's root file. Click on the "Browse" button next to the "Zipped File to Package" heading to add a zipped archive to your package.
-
9
Click on the "Create Package" button to compile your game into a single JAR file.
-
1