Skip to content

"Configure Java runtime" gives no option to install macOS arm64 JDK #2201

@TylerADavis

Description

@TylerADavis

I just opened a java project on an arm64 Mac for the first time, and the extension isn't providing an option to install an arm64 jdk (or recognizing my current jdk).

Environment
  • Operating System: macOS 12 (arm64)
  • JDK version: 11.0.2
  • Visual Studio Code version: 1.62.0
  • Java extension version: 1.0.0
Steps To Reproduce
  1. Install Zulu build of openjdk 11 through IntelliJ
    2. JDK seems to live at ~/Library/Java/JavaVirtualMachines
  2. Install VS Code and the java extension
  3. Get message saying that Java 11 or newer must be installed
  4. Click the blue text to open the configuration page
  5. Observe no aarch64 download link. (the installed JDKs tab cannot find my jdk install, but perhaps that has something to do with how I installed Zulu, or something as described in URGENT- "Java 11 or more recent is required to run. Please download and install a recent JDK" #1543 (comment))
Current Result

VS Code offers to install x64 java.

Expected Result

VS Code offers to install aarch64 java.

Additional Information

Observe that the install options given are only for Mac x64 and not ARM64, even though adoptium.net has aarch64 builds of jdk17 for macOS. I would be glad to help contribute a fix, but I'm not sure of where the relevant code is in the codebase, and I didn't have any success with a GitHub search.

What I see when opening the configure java runtime page:
Screen Shot 2021-11-08 at 8 48 19 AM copy

adoptium.net, showing the availability of JDK17 for aarch64:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions