Home > Blockchain >  Java error:JDK 17.0.1 can’t be installed on this computer
Java error:JDK 17.0.1 can’t be installed on this computer

Time:01-16

Screenshot of Adoptium download page

CodePudding user response:

Using package managers simplifies your experience as you can get anything from one place. Moreover, vendors support packages at such systems. I prefer SDKMAN!

Try to use SDKMAN https://sdkman.io. For example, you can install Liberica JDK 17 on MacBook Pro with X86 or M1 processors, and you do not have to care SDKMAN will select the right package for you.

Download and install SDKMAN!:

$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"

Get the list of available Java distributions to install:

$ sdk list java

For example, to install Liberica JDK 17:

$ sdk install java 17.0.1-librca

or with Java FX

$ sdk install java 17.0.1.fx-librca 

Check a short document about other package managers and how to use them for Liberica JDK installation. https://bell-sw.com/pages/package-managers/#sdkman

  •  Tags:  
  • Related