The resulting version includes the JRE in the app package. (The new lines are shown in bold.)Ĭreate a fresh version of ButtonDemo.app, using the ant bundle-buttonDemo command. The resulting build.xml file should look like the following.
In fact, the Apple Store requires the use of an embedded JRE as a prerequisite for Mac App Store distribution. Your app package should include the Java Runtime Environment, or JRE. In order to distribute a Java application, you want to avoid dependencies on third party software.
In this case, create a lib directory in the high-level project directory and add the appbundler-1.0.jar file. Download the latest version available and substitute the file name accordingly. There is also AppBundler Documentation available.Īs of this writing, the most recent version is appbundler-1.0.jar, which is used by this document. You can download it from the Java Application Bundler project on. The appbundler is not shipped with the 7u6 version of the Oracle JDK for the Mac. To create the ButtonDemo.app package, use the appbundler tool. This step creates the ButtonDemo.jar file.Įxecute ant jar in the high-level project directory to create the dist/ButtonDemo.jar file. This requires the following steps: Create a JAR File You have created a Java application and want to bundle it for deployment.
You can run all necessary tools and make all necessary edits from the command line, without launching NetBeans. This example was created using NetBeans which uses the Ant utility. To follow along, download the ButtonDemo (.zip) example from the Java Tutorial.
This page shows you, step by step, how to convert a simple Java application to a version you can distribute on a Mac. Please visit for the most up-to-date documentation. They remain available for archival purposes. These documentation pages are no longer current. Split screen multiplayer (online multiplayer requires subscription sold separately) Playing split screen allows up to four players to play on the screen at the same time.
Download Vassal, the free, open-source boardgame engine.Vassal runs on Linux, Mac OS X, Windows, and any other system which has a Java JRE.
Free java 1.7 updates download software at UpdateStar - Java Platform, Standard Edition (Java SE) lets you develop and deploy Java applications on desktops and servers, as well as in today's demanding embedded environments. Unjar JavaSoundDemo.jar with the command jar xvj JavaSoundDemo.jar. To make the jar file executable, the manifest must include the name of the Main class file.
Because Mac OS X ships with the Jar Launcher application, the end user needs only double click on the jar file and the application will launch.