Score:0

$ sdk current java is showing Not using any version of java

ph flag

I have sdkman installed in my linux ubuntu 18.04.

$ sdk version
SDKMAN 5.11.5+713

I installed amazon java correto 11 using the below command.

$ sdk install java 11.0.11.9.1-amzn
java 11.0.11.9.1-amzn is already installed.

I made this java version as default version using the below command
$ sdk default java 11.0.11.9.1-amzn
Default java version set to 11.0.11.9.1-amzn

but when i am trying to see, current default java version it shows not using any version of java

$ sdk current java
Not using any version of java

also when i do this $ sudo update-alternatives --config java i don't get that amazon correto 11 in lists

$ sudo update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java).enter image description here

Tonsic avatar
ru flag
I was having the same problem with you right now, tried more versions even. What solved the problem here was... opening a new bash. I kid you not. Hope it solves for you too. (@alexandre-teles suggested that I put this here also as a comment)
Score:0
ru flag

I was having the same problem with you right now, tried more versions even.

What solved the problem here was... opening a new bash. I kid you not. Hope it solves for you too.

fr flag
Please consider posting your answer as a comment as it directly provides a solution to the problem presented by OP. Your suggestion is valid though, as sometimes opening a new shell session can solve that kind of problem by reloading system environment variables.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.