When using sdkman on uBuntu 17.04, I do not see an option to install the oracle jdk. How to specify to install oracle jdk using sdkman on uBuntu 17.04?
$sdk list java
===================================================================
Available Java Version
===================================================================
> * 8u131-zulu
7u141-zulu
6u93-zulu
===================================================================
+ - local version
* - installed
> - currently in use
===================================================================
$
You can type sdk ls java
and see which versions are available.
At the moment I see 8u141-oracle
in the list. So you can install it by sdk i java 8u141-oracle
Currently Oracle JDKs has finally been pulled out from SDKMAN due to some legal issues. The legal issues are explained over here
They have decided to introduce a lot of OpenJDK implementations like Azul Zulu, Azul ZuluFX for those who need JavaFX along with it. Please check with sdk ls java
to find out what more are supported as of now.
Just for anyone stumbling upon this answer: You can still download Oracle JDK and extract it manually in the appropriate folder. After that you can use all the sdkman commands like if it was installed automatically.
Extract Oracle JDK to ~/.sdkman/candidates/java/8.0.241-oracle
and activate using sdk use java 8.0.241-oracle
.
2021 Edit: You no longer need to install/extract the manually downloaded binaries in the .sdkman
folder. Just use local-path
and provide the path where the binaries reside, eg sdk install groovy 2.4.13-local /opt/groovy-2.4.13
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.