Build OpenJDK 8 on MacOS Mojave (10.14.3)

Simon Tooke stooke at redhat.com
Mon Mar 25 13:48:16 UTC 2019


I have successfully done this (with some very important caveats that
make it useful only for hacking the JDK at this point).

Please let me know if you have any comments or corrections to my rough
guide:

https://github.com/stooke/jdk8u-xcode10

I'll write a shell script at some point, and clean up the patches into a
proper PR.

On 3/21/2019 6:05 AM, Langer, Christoph wrote:
> Hi,
>
> the Mac experts will probably find my question to be silly and start laughing… but nevertheless, I’m asking it here ��
>
> I was looking into building OpenJDK 8 today on my developer Mac, which runs Mojave (10.14.3). configure immediately tells me, I need Xcode 4. So I was trying to install xcode 4.6.3 – but seems this wouldn’t run on Mojave. What can I do?
>
> Ok, on the build requirements page [0], the requirements are documented to be MacOS 10.7 (Lion). However, I’m thinking, since OpenJDK 8 is not completely legacy yet, at least a developer build should be possible on a current operating system. I would accept having to install the oldest running Xcode compiler for sure, but not at all being able to build on a recent MacOS is not good.
>
> So, question to the experts: Will it be impossible to bump the build environment because changes would be too complex? Or is there a solution to this which I’m just not aware of?
>
> Thank you and Best regards
> Christoph
>
> [0] https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms
>


More information about the build-dev mailing list