Customizing sdk list / sdk use in sdkman
Asked Answered
R

2

21

I'm using a non-public JDK legacy version - precisely jdk-6u171 and I'm wondering if there is a way to list and use my locally installed versions with sdkman.

My current results to sdk list java:

===================================================================
Available Java Versions
==================================================================
    9.0.7-zulu                                                                    
    9.0.4-openjdk                                                                 
    8.0.172-zulu                                                                  
> * 8.0.171-oracle                                                                
    7.0.181-zulu                                                                  
    6.0.107-zulu                                                                  
    10.0.1-zulu                                                                   
  * 10.0.1-oracle                                                                 
    10.0.0-openjdk                                                                
    1.0.0-rc1-graal            

What I meant is: to show this installed version here in this list and also to be able to execute, for example, sdk use java 6.0.171-custom

Is there a way to have it?

Thanks in advance,

Regards.

Rowlock answered 2/7, 2018 at 16:54 Comment(0)
M
29

By the Usage documents, a local version of an sdk can be installed with

sdk install <sdk> <local-version-name> <path-to-local-installation>

see Usage

Mishmash answered 9/8, 2018 at 20:12 Comment(0)
P
9

for example in ubuntu:

sdk install java java241 '/home/srdr/java/jdk-8u241-linux-x64/jdk1.8.0_241'
Persecution answered 6/2, 2020 at 18:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.