Git Product home page Git Product logo

jdk11u-macos's Introduction

Compiling OpenJDK 17 (preview) using Xcode 12 (including cross-compiling to aarch64 a.k.a. M1)

How to compile OpenJDK head with the latest Xcode on macOS Big Sur. This will produce either an x86_64 JDK or an aarch64 JDK - you need ot change the BUILD_TARGET_ARCH line at the top of buildjdk.sh This script works by restarting in x86_64 mode if on an M1, and then either doing an arrch64 cross-compile or a straight x86_64 compile.

Quick start:

  git clone https://github.com/stooke/jdk11u-macos.git
  ./jdk11u-macos/buildjdk.sh

Compiling OpenJDK 17 (preview) into a Fat (x86_64 and aarch64) JDK

This script compiles both architectures, then combines them into a "fat" JDK. After that it produces a fatjdk.zip and a fatdsym.zip file.

Quick start:

  git clone https://github.com/stooke/jdk11u-macos.git
  ./jdk11u-macos/mkfat.sh

Compiling OpenJDK 11u using XCode 12

How to compile JDK 11 with the latest Xcode on macOS High Sierra, to Big Sur (Currently tested with Xcode 9.4/macOS 10.13.6 and Xcode 10.3/macOS 10.14.6)

This is actually pretty easy so this repo exists for convenience more than anything else at this point. The currently checked in script builds a full jdk11u with Shenandoah and JavaFX.
Edit the script to disable either Shenandoah or enable JavaFX.

Quick start:

The easiest way to get a working JDK11u is:

  git clone https://github.com/stooke/jdk11u-macos.git
  ./jdk11u-macos/build11.sh

Install Prerequisites

The build script will download and install these (except for Xcode; that one's on you) in a local location, so no action is required if you use these scripts.

You must download Xcode, install it in /Applications, (run it once to accept the license) and run

  sudo xcode-select -s /Applications/Xcode.app

jdk11u-macos's People

Contributors

stooke avatar adinn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.