Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adoptopenjdk 8 does not support AArch64 for new Mx Macs #1378

Closed
soft4rchitecture opened this issue Aug 3, 2022 · 5 comments
Closed

adoptopenjdk 8 does not support AArch64 for new Mx Macs #1378

soft4rchitecture opened this issue Aug 3, 2022 · 5 comments
Labels

Comments

@soft4rchitecture
Copy link

Describe the bug
when running ./gradlew clean build, an error occurs saying "JDK is not available, Could not read 'https://api.adoptopenjdk.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk' as it does not exist."

To Reproduce
Steps to reproduce the behavior:

  1. Go to the root directory of git repository
  2. run ./gradlew clean build
  3. See error

Expected behavior
the jdk is found, and installed

Screenshots
image

Configuration:

  • OS: OSX Monterey 12.5
  • cpu architecture: AArch64

Additional context
when running "curl https://api.adoptopenjdk.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk" the following message is returned: {"errorMessage":"No releases match the request"}.
It looks like adoptopenjdk doesn't support AArch64 CPU architecture.

@fhoeben
Copy link
Collaborator

fhoeben commented Aug 3, 2022

As a workaround I believe you can install the Java 8 from Zulu which does support Mac m1: https://www.azul.com/downloads/?version=java-8-lts&os=macos&package=jdk

@fhoeben
Copy link
Collaborator

fhoeben commented Aug 13, 2022

I believe this is the same problem as gradle/gradle#19874

They point to gradle/gradle#19140 (comment) as a way to get around this, but I don't immediately see how this can be used to fix the issue for FitNesse

@fhoeben
Copy link
Collaborator

fhoeben commented Aug 13, 2022

Maybe we can look at https://github.com/palantir/gradle-jdks...

@fhoeben
Copy link
Collaborator

fhoeben commented Aug 13, 2022

It turns out that plugin only works when building with Java 11. Since we are building for Java 8 I would prefer to stick to that for the build process also. I created an issue to see whether they can add Java 8 support

@fhoeben
Copy link
Collaborator

fhoeben commented Feb 19, 2024

Closing this issue given we upgraded to Java 11

@fhoeben fhoeben closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants