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

Cant install macosx/aarch64 based jdks - Apple M1 supported? #827

Open
otbe opened this issue Dec 29, 2021 · 7 comments
Open

Cant install macosx/aarch64 based jdks - Apple M1 supported? #827

otbe opened this issue Dec 29, 2021 · 7 comments

Comments

@otbe
Copy link

otbe commented Dec 29, 2021

Hi there.

I recently switched from an intel based Macbook Pro to an M1 based. Jabba in general works but Im not able to install any aarch64 jdks. It always tries to download the x64 variant.

For example

jabba install [email protected]
Downloading [email protected] (https://cdn.azul.com/zulu/bin/zulu8.52.0.23-ca-jdk8.0.282-macosx_x64.tar.gz)

As far as I can tell the index includes a aarch64 version of this jdk.

What am I doing wrong here?

Thank you very much!

@liebig
Copy link

liebig commented Jan 13, 2022

As a workaround, I would use the jabba install command with the path specified:
jabba install 1.8.0-zulu=tgz+http://PATHTOZULU.com/distribution.tar.gz

@mkurz
Copy link

mkurz commented Jan 31, 2022

There is another jabba index which you can use to get the adoptium builds for aarch64 and others: https://github.com/typelevel/jdk-index You just need to change an environment variable.

@RickMoynihan
Copy link

RickMoynihan commented Apr 14, 2022

Just a note that I had this issue too; it looks like the architecture isn't properly detected on an m1 mac. The posted workaround does work though.

@mkurz
Copy link

mkurz commented Apr 14, 2022

One more index you can use: https://github.com/coursier/jvm-index/blob/master/index.json (make sure you use the raw file)

@jborgers
Copy link

I downloaded Adoptium Temurin-11.0.17+8 from the index, however, jabba use doesn't work. With java -version, I still see my system installed Zulu17.

@martonsz
Copy link

martonsz commented Jan 21, 2023

This repo is not maintained anymore.
There is an issue that mentions a fork of this project: #845

My issue at the fork has been resolved about this problem: Jabba-Team#14
You can download an ARM version here: https://github.com/Jabba-Team/jabba/releases/tag/0.12.1-rc

@jborgers
Copy link

Thanks @martonsz! That really helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants