mac m1 compile open jdk

when I configure openjdk 12 , after execute `bash configure` ,it shows bellow:


configure: xcodebuild output: objc[89598]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x2073feb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1087e42c8). One of the two will be used. Which one is undefined.

configure: error: Failed to determine Xcode version.

/Users/lodgegong/warehouse/cbackend/jdk12-06222165c35f/build/.configure-support/generated-configure.sh: line 84: 5: Bad file descriptor

configure exiting with result code 1

Windows, Windows 10

Posted on Jan 4, 2022 10:54 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 6, 2022 8:47 PM

Not sure of the versions involved here, but JDK 12 is not listed as working on AArch64 Arm M1 here:


https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms


Based on that, you will want to build JDK 17 or JDK 18, using macOS 11.2 or later, and with Xcode 12.4.


Or acquire and use a pre-built version.


Similar questions

6 replies

Jan 6, 2022 8:26 PM in response to Guardian623

Guardian623 wrote:

Thanks for reply, I'm learning JVM

Then building openjdk on an M1 is not something you want to attempt at this time. There seem to be a couple of different binaries available from:

https://www.azul.com/newsroom/azul-announces-support-of-java-builds-of-openjdk-for-apple-silicon/

https://openjdk.java.net/jeps/391

https://github.com/adoptium/temurin-build/issues/1922


and it seems to be available in homebrew as well.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

mac m1 compile open jdk

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.