System JDK versus SDKMAN












0















More than once I've had to go into apt to remove JDK > 8 because, at least for the moment, umake installs Netbeans 8 which only runs on JDK 8.



I only need JDK 8 for Netbeans, and that temporarily until umake install NB 9. That being said, how can I get the system to stay at JDK 8 (and maybe even JVM 8?) in concert with SDKMAN?



Or, fundamentally, are these different systems -- Java versioning specific to a user account for SDKMAN versus the system configuration?



thufir@dur:~$ 
thufir@dur:~$ javac -version
javac 11.0.1
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
12.ea.20-open
11.0.1-zulu
11.0.1-open
10.0.2-zulu
10.0.2-open
9.0.7-zulu
9.0.4-open
* 8.0.192-zulu
8.0.191-oracle
7.0.201-zulu
6.0.119-zulu
1.0.0-rc-10-grl
1.0.0-rc-9-grl
1.0.0-rc-8-grl


================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$


Not sure what happened to JDK 8:



thufir@dur:~$ 
thufir@dur:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
thufir@dur:~$


fixed for now:



thufir@dur:~$ 
thufir@dur:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_191
thufir@dur:~$


but it's getting repetitive.










share|improve this question

























  • So what is the problem?

    – George Udosen
    Jan 3 at 5:54











  • why does java and javac version keep changing? only because apt is pulling in new packages?

    – Thufir
    Jan 3 at 18:06
















0















More than once I've had to go into apt to remove JDK > 8 because, at least for the moment, umake installs Netbeans 8 which only runs on JDK 8.



I only need JDK 8 for Netbeans, and that temporarily until umake install NB 9. That being said, how can I get the system to stay at JDK 8 (and maybe even JVM 8?) in concert with SDKMAN?



Or, fundamentally, are these different systems -- Java versioning specific to a user account for SDKMAN versus the system configuration?



thufir@dur:~$ 
thufir@dur:~$ javac -version
javac 11.0.1
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
12.ea.20-open
11.0.1-zulu
11.0.1-open
10.0.2-zulu
10.0.2-open
9.0.7-zulu
9.0.4-open
* 8.0.192-zulu
8.0.191-oracle
7.0.201-zulu
6.0.119-zulu
1.0.0-rc-10-grl
1.0.0-rc-9-grl
1.0.0-rc-8-grl


================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$


Not sure what happened to JDK 8:



thufir@dur:~$ 
thufir@dur:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
thufir@dur:~$


fixed for now:



thufir@dur:~$ 
thufir@dur:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_191
thufir@dur:~$


but it's getting repetitive.










share|improve this question

























  • So what is the problem?

    – George Udosen
    Jan 3 at 5:54











  • why does java and javac version keep changing? only because apt is pulling in new packages?

    – Thufir
    Jan 3 at 18:06














0












0








0








More than once I've had to go into apt to remove JDK > 8 because, at least for the moment, umake installs Netbeans 8 which only runs on JDK 8.



I only need JDK 8 for Netbeans, and that temporarily until umake install NB 9. That being said, how can I get the system to stay at JDK 8 (and maybe even JVM 8?) in concert with SDKMAN?



Or, fundamentally, are these different systems -- Java versioning specific to a user account for SDKMAN versus the system configuration?



thufir@dur:~$ 
thufir@dur:~$ javac -version
javac 11.0.1
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
12.ea.20-open
11.0.1-zulu
11.0.1-open
10.0.2-zulu
10.0.2-open
9.0.7-zulu
9.0.4-open
* 8.0.192-zulu
8.0.191-oracle
7.0.201-zulu
6.0.119-zulu
1.0.0-rc-10-grl
1.0.0-rc-9-grl
1.0.0-rc-8-grl


================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$


Not sure what happened to JDK 8:



thufir@dur:~$ 
thufir@dur:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
thufir@dur:~$


fixed for now:



thufir@dur:~$ 
thufir@dur:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_191
thufir@dur:~$


but it's getting repetitive.










share|improve this question
















More than once I've had to go into apt to remove JDK > 8 because, at least for the moment, umake installs Netbeans 8 which only runs on JDK 8.



I only need JDK 8 for Netbeans, and that temporarily until umake install NB 9. That being said, how can I get the system to stay at JDK 8 (and maybe even JVM 8?) in concert with SDKMAN?



Or, fundamentally, are these different systems -- Java versioning specific to a user account for SDKMAN versus the system configuration?



thufir@dur:~$ 
thufir@dur:~$ javac -version
javac 11.0.1
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
12.ea.20-open
11.0.1-zulu
11.0.1-open
10.0.2-zulu
10.0.2-open
9.0.7-zulu
9.0.4-open
* 8.0.192-zulu
8.0.191-oracle
7.0.201-zulu
6.0.119-zulu
1.0.0-rc-10-grl
1.0.0-rc-9-grl
1.0.0-rc-8-grl


================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$


Not sure what happened to JDK 8:



thufir@dur:~$ 
thufir@dur:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
thufir@dur:~$


fixed for now:



thufir@dur:~$ 
thufir@dur:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_191
thufir@dur:~$


but it's getting repetitive.







java development sdk ubuntu-make jvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 23:56







Thufir

















asked Jan 2 at 23:49









ThufirThufir

1,58084399




1,58084399













  • So what is the problem?

    – George Udosen
    Jan 3 at 5:54











  • why does java and javac version keep changing? only because apt is pulling in new packages?

    – Thufir
    Jan 3 at 18:06



















  • So what is the problem?

    – George Udosen
    Jan 3 at 5:54











  • why does java and javac version keep changing? only because apt is pulling in new packages?

    – Thufir
    Jan 3 at 18:06

















So what is the problem?

– George Udosen
Jan 3 at 5:54





So what is the problem?

– George Udosen
Jan 3 at 5:54













why does java and javac version keep changing? only because apt is pulling in new packages?

– Thufir
Jan 3 at 18:06





why does java and javac version keep changing? only because apt is pulling in new packages?

– Thufir
Jan 3 at 18:06










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106427%2fsystem-jdk-versus-sdkman%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106427%2fsystem-jdk-versus-sdkman%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?