Problem with uninstalling java
To uninstall java I followed this.
When I have uninstalled java completely , java -version
shows openjdk version "11.0.1" . It's supposed to be no java at all, isn't it?.
Then I've installed java 8, still java -version
command yields openjdk version "11.0.1".
I need java for running a bioinformatics tool called Integrative Genomics Viewer(igv). After installing java 8 it continues to tell me I need java 8.
Please help.
java uninstall openjdk
|
show 10 more comments
To uninstall java I followed this.
When I have uninstalled java completely , java -version
shows openjdk version "11.0.1" . It's supposed to be no java at all, isn't it?.
Then I've installed java 8, still java -version
command yields openjdk version "11.0.1".
I need java for running a bioinformatics tool called Integrative Genomics Viewer(igv). After installing java 8 it continues to tell me I need java 8.
Please help.
java uninstall openjdk
2
What is the output ofapt list --installed | grep jdk
?
– Kulfy
Dec 27 '18 at 6:56
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use theupdate-alternatives
to make one the default.
– xenoid
Dec 27 '18 at 7:15
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
1
and output ofwhich java
andwhich javac
?
– Kulfy
Dec 27 '18 at 7:31
|
show 10 more comments
To uninstall java I followed this.
When I have uninstalled java completely , java -version
shows openjdk version "11.0.1" . It's supposed to be no java at all, isn't it?.
Then I've installed java 8, still java -version
command yields openjdk version "11.0.1".
I need java for running a bioinformatics tool called Integrative Genomics Viewer(igv). After installing java 8 it continues to tell me I need java 8.
Please help.
java uninstall openjdk
To uninstall java I followed this.
When I have uninstalled java completely , java -version
shows openjdk version "11.0.1" . It's supposed to be no java at all, isn't it?.
Then I've installed java 8, still java -version
command yields openjdk version "11.0.1".
I need java for running a bioinformatics tool called Integrative Genomics Viewer(igv). After installing java 8 it continues to tell me I need java 8.
Please help.
java uninstall openjdk
java uninstall openjdk
asked Dec 27 '18 at 6:52
Ahmed Abdullah
1164
1164
2
What is the output ofapt list --installed | grep jdk
?
– Kulfy
Dec 27 '18 at 6:56
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use theupdate-alternatives
to make one the default.
– xenoid
Dec 27 '18 at 7:15
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
1
and output ofwhich java
andwhich javac
?
– Kulfy
Dec 27 '18 at 7:31
|
show 10 more comments
2
What is the output ofapt list --installed | grep jdk
?
– Kulfy
Dec 27 '18 at 6:56
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use theupdate-alternatives
to make one the default.
– xenoid
Dec 27 '18 at 7:15
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
1
and output ofwhich java
andwhich javac
?
– Kulfy
Dec 27 '18 at 7:31
2
2
What is the output of
apt list --installed | grep jdk
?– Kulfy
Dec 27 '18 at 6:56
What is the output of
apt list --installed | grep jdk
?– Kulfy
Dec 27 '18 at 6:56
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use the
update-alternatives
to make one the default.– xenoid
Dec 27 '18 at 7:15
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use the
update-alternatives
to make one the default.– xenoid
Dec 27 '18 at 7:15
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
1
1
and output of
which java
and which javac
?– Kulfy
Dec 27 '18 at 7:31
and output of
which java
and which javac
?– Kulfy
Dec 27 '18 at 7:31
|
show 10 more comments
2 Answers
2
active
oldest
votes
Sounds like you did not delete openjdk if it's still listed.
Try running sudo apt-get purge --auto-remove openjdk*
to remove the unsupported version of java, then install java 8.
New contributor
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
add a comment |
The IGV program started for me, these were the steps I took:
I uninstalled my version of Java and installed Java 8.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
$ sudo apt remove openjdk*
...
$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt update
$ sudo apt install openjdk-8-jdk
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ cd Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16$ ls
igv.command igv.sh lib readme.txt
$ chmod a+x igv.sh
Made the script executable
$ ./igv.sh
Execute the script and start the program.
Hope this works for you.
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104814%2fproblem-with-uninstalling-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sounds like you did not delete openjdk if it's still listed.
Try running sudo apt-get purge --auto-remove openjdk*
to remove the unsupported version of java, then install java 8.
New contributor
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
add a comment |
Sounds like you did not delete openjdk if it's still listed.
Try running sudo apt-get purge --auto-remove openjdk*
to remove the unsupported version of java, then install java 8.
New contributor
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
add a comment |
Sounds like you did not delete openjdk if it's still listed.
Try running sudo apt-get purge --auto-remove openjdk*
to remove the unsupported version of java, then install java 8.
New contributor
Sounds like you did not delete openjdk if it's still listed.
Try running sudo apt-get purge --auto-remove openjdk*
to remove the unsupported version of java, then install java 8.
New contributor
New contributor
answered Dec 27 '18 at 9:26
Jonathan Fetzer
1
1
New contributor
New contributor
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
add a comment |
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
– Ahmed Abdullah
Dec 27 '18 at 9:59
add a comment |
The IGV program started for me, these were the steps I took:
I uninstalled my version of Java and installed Java 8.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
$ sudo apt remove openjdk*
...
$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt update
$ sudo apt install openjdk-8-jdk
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ cd Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16$ ls
igv.command igv.sh lib readme.txt
$ chmod a+x igv.sh
Made the script executable
$ ./igv.sh
Execute the script and start the program.
Hope this works for you.
New contributor
add a comment |
The IGV program started for me, these were the steps I took:
I uninstalled my version of Java and installed Java 8.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
$ sudo apt remove openjdk*
...
$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt update
$ sudo apt install openjdk-8-jdk
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ cd Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16$ ls
igv.command igv.sh lib readme.txt
$ chmod a+x igv.sh
Made the script executable
$ ./igv.sh
Execute the script and start the program.
Hope this works for you.
New contributor
add a comment |
The IGV program started for me, these were the steps I took:
I uninstalled my version of Java and installed Java 8.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
$ sudo apt remove openjdk*
...
$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt update
$ sudo apt install openjdk-8-jdk
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ cd Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16$ ls
igv.command igv.sh lib readme.txt
$ chmod a+x igv.sh
Made the script executable
$ ./igv.sh
Execute the script and start the program.
Hope this works for you.
New contributor
The IGV program started for me, these were the steps I took:
I uninstalled my version of Java and installed Java 8.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
$ sudo apt remove openjdk*
...
$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt update
$ sudo apt install openjdk-8-jdk
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ cd Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16$ ls
igv.command igv.sh lib readme.txt
$ chmod a+x igv.sh
Made the script executable
$ ./igv.sh
Execute the script and start the program.
Hope this works for you.
New contributor
New contributor
answered Dec 28 '18 at 22:01
Jonathan Fetzer
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104814%2fproblem-with-uninstalling-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
What is the output of
apt list --installed | grep jdk
?– Kulfy
Dec 27 '18 at 6:56
1) which Java version(s) have you installed? 2) In Ubuntu/Debian you can install several versions/variants of the same package and then use the
update-alternatives
to make one the default.– xenoid
Dec 27 '18 at 7:15
I've used update-alternatives while both java 11 and java 8 were installed. But it didn't work so I decided to completely uninstall the java and only use java 8 (which I need at the moment).
– Ahmed Abdullah
Dec 27 '18 at 7:18
@Kulfy apt list --installed | grep jdk returns "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." and no other result
– Ahmed Abdullah
Dec 27 '18 at 7:25
1
and output of
which java
andwhich javac
?– Kulfy
Dec 27 '18 at 7:31