
The resulting build.xml file should look like theįollowing. The JRE on your system, using the env property:
#UPDRAGE JAVA FOR MAC TEC CODE#
(The added code is shown in bold.)īundle-buttonDemo from the high-level project directory. Modify the build.xml file in the high-level projectĭirectory as follows.In this case,Ĭreate a lib directory in the high-level project directory There is alsoĪs of this writing, the most recent version isĪppbundler-1.0.jar, which is used by this document.ĭownload the latest version available and substitute the file name You canĭownload it from the Java Application Bundler project on. With the 7u6 version of the Oracle JDK for the Mac. To create the ButtonDemo.app package, use theĪppbundler tool. This step creates the ButtonDemo.jar file.Įxecute ant jar in the high-level project directory toĬreate the dist/ButtonDemo.jar file. You have created a Java application and want to bundle it forĭeployment. YouĬan run all necessary tools and make all necessary edits from theĬommand line, without launching NetBeans. Was created using NetBeans which uses the Ant utility. To followīuttonDemo (.zip) example from the Java Tutorial.
#UPDRAGE JAVA FOR MAC TEC HOW TO#
This page shows you, step by step, how to convert a simple JavaĪpplication 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.


Packaging a Java App for Distribution on a Mac
