Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

<detailed instructions go here once MACOSX_PORT-105 is complete>

A prototype launcher stub is present in the source code at:

http://hg.openjdk.java.net/jdk7u/jdk7u-osxdev/jdk/file/tip/src/macosx/bundle/JavaAppLauncher/

The Xcode project file in that directory will build a shell .app with the launcher stub and an example Info.plist.

The next steps for this code is to be adapted into the JDK's proper Makefile-driven build system, and to create an artifact in the standard JDK bundle. After that, a script or Ant target which can be driven by and IDE should take that artifact and a application descriptor to create a proper .app.

Contributed steps to bundle from the macosx-port-dev@openjdk.java.net mailing list:

-----------------------------------------------------------
-----------------------------------------------------------

STEP 1. Checkout, download, install & build the MacOS OpenJDK package as described on the Oracle OpenJDK Mac OS X Port page:

https://wikis.oracle.com/display/OpenJDK/Mac + OS + X + Port

STEP 2. Identify & launch the JavaAppLauncher.xcodeproj located in your
/YOUR_INSTALL_PATH/jdk7u-osxdev/jdk/src/macosx/bundle/JavaAppLauncher/ directory.

STEP 3. In the Xcode project repair any undefined file paths. These would be indicated in the files tab in the Xcode project left side bar in red. I had to update the 1.7.0.jdk & 1.7.0.jre paths to the bundles stored in /YOUR_INSTALL_PATH/jdk7u-osxdev/build/macosx-amd64/j2sdk-image/ directory and the /YOUR_INSTALL_PATH/jdk7u-osxdev/build/macosx-amd64/j2re-image/1.7.0.jre respectively. I also had to update all the files in the include diretory which included:

...

All the above I found in the /YOUR_INSTALL_PATH/jdk7u-osxdev/build/macosx-amd64/include/ directory.

I also need to find the /frameworks/Cocoa.framework/Headers/Cocoa.h reference. I used the one hosted in /System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/ directory.unmigrated-wiki-markup

I specified all the 'Location' paths in the Xcode UI as \ [Absolute Path\]

STEP 4. Build the project in Xcode. If all goes well you'll find the product JavaAppLauncher.app which will give you a template to base your own app bundle from. Xcode will give you the path of the project output. Mine was :

...