Mac OS X Port

Skip to end of metadata
Go to start of metadata

Goals

  • Pass all appropriate certification tests for Java SE 7
  • Include a complete, native Cocoa-based UI Toolkit
    • DONE.
  • Provide excellent performance
  • Integrate into main-line OpenJDK 8 
    • DONE. OS X is now 'just another platform' in OpenJDK 8

Minimum requirements to run

Note that only Mac OS X 10.7.3 and higher will be an Oracle-supported platform. It should continue to run on 10.6.8+ but that is not guaranteed. As of 1-Jan-2012 there are no plans to introduce 10.7-only APIs into the codebase.

Prerequisites to build

  • X11
    • On OS X 10.8 Mountain Lion: XQuartz
    • On OS X 10.7 Lion: Run /Applications/Utilities/X11.app to install as an additional download

JTReg is not required to build but useful for running regression tests

1. Get the code

2. Build

Java 7 or higher installed
Using Apple's Java 6

* Steps for incremental building

3. Smoke Test

4. Install

5. Run

If you have the Java Developer Package installed:

6. Test

Download jtreg to run the tests in the /jdk/test directory.

Bugs!

File new bugs at http://bugreport.sun.com/bugreport/. Please check out the bug reporting guidelines if you haven't filed against the project before.

Questions?

Please join the macosx-port-dev mailing list and ask!

See something wrong on this page? Fix it!

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 23, 2012

    The "Get the Code" sections lists the commands for fetching the source. I can build when I use this command. But when I try to update the source, by doing a pull instead of a clone, the resulting source will not build. Can someone add the correct commands for updating the source? Fetching and building the entire corpus every time seems unnecessary.

    1. Oct 04, 2012

      It turns out that the answer is too simple to have been documented. Just execute the get_source.sh script again. There is no step 3, or even a step 2...

  2. Dec 03, 2012

    deleted

  3. Jan 27, 2013

    After the build I end up with:

    build/macosx-x86_64-normal-server-release

    and not with:

    build/macosx-universal/j2sdk-bundle/jdk1.8.0.jdk

    Is this supposed to be like this?

  4. Mar 22, 2013

    For anyone trying to follow this guide on OSX 10.8.X please note:

    Between steps 1 and 2 you need to execute configure in order to build a local configuration:

    $ chmod 755 configure

    $ ./configure

    Step 3 (smoke test) should be :

    $ build/macosx-x86_64-normal-server-release/jdk/bin/java -version

    Best wishes,

    Daniel

  5. May 10, 2013

    deleted

    1. May 10, 2013

      deleted

  6. Oct 21, 2013

    Greetings,

    I am running 10.6.8. When I use the commands in step 2. Build for Java 6, it says...

    "No configurations found for /Users/temp/jdk8/! Please run configure to create a configuration."

    If I use "./configure", it says...

    "configure: Found potential Boot JDK using JAVA_HOME

    configure: Potential Boot JDK found at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home is incorrect JDK version (java version "1.6.0_65"); ignoring

    configure: (Your Boot JDK must be version 7 or 8)"

    configure: Found potential Boot JDK using JAVA_HOME
    configure: Potential Boot JDK found at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home is incorrect JDK version (java version "1.6.0_65"); ignoring
    configure: (Your Boot JDK must be version 7 or 8)
    Help

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.