How do I uninstall java 11 to be able to install java 8 for Android Studio?












1















I tried to install Android Studio but it gave me several problems.
Among them is that they told me that they need java8 and on my pc this java11.
When you run java -version, the result is the following:




java version "11.0.2" 2018-10-16 LTS Java (TM) SE Runtime Environment
18.9 (build 11.0.2 + 7-LTS) Java HotSpot (TM) 64-Bit Server VM 18.9 (build 11.0.2 + 7-LTS, mixed mode)




I see that java is in usr / bin, in fact there are several java folder:



  java, javac, javadoc, javafxpackager, javah, javap, javapackager, javaws



How should I remove java in order to install java 8 and be able to install Android Studio correctly?
I have tried several commands, but the problem is that I do not know exactly how to install it.
On the other hand, when I search java in "UBUNTU SOFTWARE, java does not appear.
Can you help me with this?
Thank you










share|improve this question


















  • 1





    How did you installed Java 11?

    – Kulfy
    9 hours ago








  • 1





    What is the output of apt list --installed | grep jdk?

    – Kulfy
    8 hours ago











  • openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

    – Miguel Espeso
    7 hours ago






  • 1





    It seems you already have Java 8 but it's not set as default. What is the output of which java?

    – Kulfy
    5 hours ago








  • 1





    Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

    – Kulfy
    5 hours ago


















1















I tried to install Android Studio but it gave me several problems.
Among them is that they told me that they need java8 and on my pc this java11.
When you run java -version, the result is the following:




java version "11.0.2" 2018-10-16 LTS Java (TM) SE Runtime Environment
18.9 (build 11.0.2 + 7-LTS) Java HotSpot (TM) 64-Bit Server VM 18.9 (build 11.0.2 + 7-LTS, mixed mode)




I see that java is in usr / bin, in fact there are several java folder:



  java, javac, javadoc, javafxpackager, javah, javap, javapackager, javaws



How should I remove java in order to install java 8 and be able to install Android Studio correctly?
I have tried several commands, but the problem is that I do not know exactly how to install it.
On the other hand, when I search java in "UBUNTU SOFTWARE, java does not appear.
Can you help me with this?
Thank you










share|improve this question


















  • 1





    How did you installed Java 11?

    – Kulfy
    9 hours ago








  • 1





    What is the output of apt list --installed | grep jdk?

    – Kulfy
    8 hours ago











  • openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

    – Miguel Espeso
    7 hours ago






  • 1





    It seems you already have Java 8 but it's not set as default. What is the output of which java?

    – Kulfy
    5 hours ago








  • 1





    Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

    – Kulfy
    5 hours ago
















1












1








1


2






I tried to install Android Studio but it gave me several problems.
Among them is that they told me that they need java8 and on my pc this java11.
When you run java -version, the result is the following:




java version "11.0.2" 2018-10-16 LTS Java (TM) SE Runtime Environment
18.9 (build 11.0.2 + 7-LTS) Java HotSpot (TM) 64-Bit Server VM 18.9 (build 11.0.2 + 7-LTS, mixed mode)




I see that java is in usr / bin, in fact there are several java folder:



  java, javac, javadoc, javafxpackager, javah, javap, javapackager, javaws



How should I remove java in order to install java 8 and be able to install Android Studio correctly?
I have tried several commands, but the problem is that I do not know exactly how to install it.
On the other hand, when I search java in "UBUNTU SOFTWARE, java does not appear.
Can you help me with this?
Thank you










share|improve this question














I tried to install Android Studio but it gave me several problems.
Among them is that they told me that they need java8 and on my pc this java11.
When you run java -version, the result is the following:




java version "11.0.2" 2018-10-16 LTS Java (TM) SE Runtime Environment
18.9 (build 11.0.2 + 7-LTS) Java HotSpot (TM) 64-Bit Server VM 18.9 (build 11.0.2 + 7-LTS, mixed mode)




I see that java is in usr / bin, in fact there are several java folder:



  java, javac, javadoc, javafxpackager, javah, javap, javapackager, javaws



How should I remove java in order to install java 8 and be able to install Android Studio correctly?
I have tried several commands, but the problem is that I do not know exactly how to install it.
On the other hand, when I search java in "UBUNTU SOFTWARE, java does not appear.
Can you help me with this?
Thank you







java jdk android-studio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









Miguel EspesoMiguel Espeso

221116




221116








  • 1





    How did you installed Java 11?

    – Kulfy
    9 hours ago








  • 1





    What is the output of apt list --installed | grep jdk?

    – Kulfy
    8 hours ago











  • openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

    – Miguel Espeso
    7 hours ago






  • 1





    It seems you already have Java 8 but it's not set as default. What is the output of which java?

    – Kulfy
    5 hours ago








  • 1





    Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

    – Kulfy
    5 hours ago
















  • 1





    How did you installed Java 11?

    – Kulfy
    9 hours ago








  • 1





    What is the output of apt list --installed | grep jdk?

    – Kulfy
    8 hours ago











  • openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

    – Miguel Espeso
    7 hours ago






  • 1





    It seems you already have Java 8 but it's not set as default. What is the output of which java?

    – Kulfy
    5 hours ago








  • 1





    Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

    – Kulfy
    5 hours ago










1




1





How did you installed Java 11?

– Kulfy
9 hours ago







How did you installed Java 11?

– Kulfy
9 hours ago






1




1





What is the output of apt list --installed | grep jdk?

– Kulfy
8 hours ago





What is the output of apt list --installed | grep jdk?

– Kulfy
8 hours ago













openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

– Miguel Espeso
7 hours ago





openjdk-8-jdk/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jdk-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático] openjdk-8-jre/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado] openjdk-8-jre-headless/bionic-updates,bionic-security,now 8u191-b12-2ubuntu0.18.04.1 amd64 [instalado, automático]

– Miguel Espeso
7 hours ago




1




1





It seems you already have Java 8 but it's not set as default. What is the output of which java?

– Kulfy
5 hours ago







It seems you already have Java 8 but it's not set as default. What is the output of which java?

– Kulfy
5 hours ago






1




1





Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

– Kulfy
5 hours ago







Let's dig up a little bit more and avoid confusions. Uninstall JDK 8 using sudo apt autoremove --purge openjdk-8-jre openjdk-8-jdk. Now what is the output of which java and java -version?

– Kulfy
5 hours ago












1 Answer
1






active

oldest

votes


















0














The program might require a specific version of java to run. You probably have to download openjdk 8 from the java website or by using the command-line, the link with provide instructions on how to do so.
https://openjdk.java.net/install/
deleting the previous version of java shouldn't be necessary






share|improve this answer








New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    my apologies if this doesn't work

    – God Himself
    9 hours ago











  • Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

    – Miguel Espeso
    9 hours ago











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%2f1119906%2fhow-do-i-uninstall-java-11-to-be-able-to-install-java-8-for-android-studio%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The program might require a specific version of java to run. You probably have to download openjdk 8 from the java website or by using the command-line, the link with provide instructions on how to do so.
https://openjdk.java.net/install/
deleting the previous version of java shouldn't be necessary






share|improve this answer








New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    my apologies if this doesn't work

    – God Himself
    9 hours ago











  • Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

    – Miguel Espeso
    9 hours ago
















0














The program might require a specific version of java to run. You probably have to download openjdk 8 from the java website or by using the command-line, the link with provide instructions on how to do so.
https://openjdk.java.net/install/
deleting the previous version of java shouldn't be necessary






share|improve this answer








New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    my apologies if this doesn't work

    – God Himself
    9 hours ago











  • Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

    – Miguel Espeso
    9 hours ago














0












0








0







The program might require a specific version of java to run. You probably have to download openjdk 8 from the java website or by using the command-line, the link with provide instructions on how to do so.
https://openjdk.java.net/install/
deleting the previous version of java shouldn't be necessary






share|improve this answer








New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










The program might require a specific version of java to run. You probably have to download openjdk 8 from the java website or by using the command-line, the link with provide instructions on how to do so.
https://openjdk.java.net/install/
deleting the previous version of java shouldn't be necessary







share|improve this answer








New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 9 hours ago









God HimselfGod Himself

1




1




New contributor




God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






God Himself is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    my apologies if this doesn't work

    – God Himself
    9 hours ago











  • Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

    – Miguel Espeso
    9 hours ago














  • 1





    my apologies if this doesn't work

    – God Himself
    9 hours ago











  • Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

    – Miguel Espeso
    9 hours ago








1




1





my apologies if this doesn't work

– God Himself
9 hours ago





my apologies if this doesn't work

– God Himself
9 hours ago













Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

– Miguel Espeso
9 hours ago





Thanks, do not help me. Besides should read how to ask a question?and so give some explanation. Just put a link, if that link is broken, the answer does not help. Thank you

– Miguel Espeso
9 hours ago


















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%2f1119906%2fhow-do-i-uninstall-java-11-to-be-able-to-install-java-8-for-android-studio%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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b