Search code examples
javaubuntusdkman

How to specify to install oracle jdk instead of openjdk in sdk cli on ubuntu 17.04?


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
 ===================================================================
$  

Solution

  • 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