Problem with uninstalling java












0














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?.
enter image description here



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.
enter image description here



Please help.










share|improve this question


















  • 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 and which javac?
    – Kulfy
    Dec 27 '18 at 7:31
















0














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?.
enter image description here



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.
enter image description here



Please help.










share|improve this question


















  • 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 and which javac?
    – Kulfy
    Dec 27 '18 at 7:31














0












0








0







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?.
enter image description here



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.
enter image description here



Please help.










share|improve this question













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?.
enter image description here



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.
enter image description here



Please help.







java uninstall openjdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 27 '18 at 6:52









Ahmed Abdullah

1164




1164








  • 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 and which javac?
    – Kulfy
    Dec 27 '18 at 7:31














  • 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 and which 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










2 Answers
2






active

oldest

votes


















0














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.






share|improve this answer








New contributor




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


















  • It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
    – Ahmed Abdullah
    Dec 27 '18 at 9:59



















0














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.






share|improve this answer








New contributor




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


















    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%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









    0














    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.






    share|improve this answer








    New contributor




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


















    • It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
      – Ahmed Abdullah
      Dec 27 '18 at 9:59
















    0














    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.






    share|improve this answer








    New contributor




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


















    • It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
      – Ahmed Abdullah
      Dec 27 '18 at 9:59














    0












    0








    0






    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.






    share|improve this answer








    New contributor




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









    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.







    share|improve this answer








    New contributor




    Jonathan Fetzer 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




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









    answered Dec 27 '18 at 9:26









    Jonathan Fetzer

    1




    1




    New contributor




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





    New contributor





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






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












    • 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




    It doesn't work. 'java -version' command still yields openjdk version "11.0.1"
    – Ahmed Abdullah
    Dec 27 '18 at 9:59













    0














    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.






    share|improve this answer








    New contributor




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























      0














      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.






      share|improve this answer








      New contributor




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





















        0












        0








        0






        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.






        share|improve this answer








        New contributor




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









        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.







        share|improve this answer








        New contributor




        Jonathan Fetzer 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




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









        answered Dec 28 '18 at 22:01









        Jonathan Fetzer

        1




        1




        New contributor




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





        New contributor





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






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






























            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.





            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.




            draft saved


            draft discarded














            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





















































            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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局