How to install openjdk 7 on ubuntu 18.04 [duplicate]












1















This question already has an answer here:




  • Installing Java 7 in 16.04 and using multiple Java versions

    2 answers




Today I try to install openjdk 7 on my ubuntu 18.04 system. It always install oracle-java8-installer instead openjdk 7. Please help me



apt-get install openjdk-7-jre










share|improve this question













marked as duplicate by karel, Kulfy, Zanna, Eric Carvalho, Fabby Dec 24 '18 at 22:29


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
    – Kulfy
    Jul 10 '18 at 8:19










  • If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
    – Kulfy
    Jul 10 '18 at 8:20






  • 1




    thanks for the answer, but I want to install openjdk, not Oracle jdk
    – duongtan
    Jul 10 '18 at 14:53
















1















This question already has an answer here:




  • Installing Java 7 in 16.04 and using multiple Java versions

    2 answers




Today I try to install openjdk 7 on my ubuntu 18.04 system. It always install oracle-java8-installer instead openjdk 7. Please help me



apt-get install openjdk-7-jre










share|improve this question













marked as duplicate by karel, Kulfy, Zanna, Eric Carvalho, Fabby Dec 24 '18 at 22:29


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
    – Kulfy
    Jul 10 '18 at 8:19










  • If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
    – Kulfy
    Jul 10 '18 at 8:20






  • 1




    thanks for the answer, but I want to install openjdk, not Oracle jdk
    – duongtan
    Jul 10 '18 at 14:53














1












1








1








This question already has an answer here:




  • Installing Java 7 in 16.04 and using multiple Java versions

    2 answers




Today I try to install openjdk 7 on my ubuntu 18.04 system. It always install oracle-java8-installer instead openjdk 7. Please help me



apt-get install openjdk-7-jre










share|improve this question














This question already has an answer here:




  • Installing Java 7 in 16.04 and using multiple Java versions

    2 answers




Today I try to install openjdk 7 on my ubuntu 18.04 system. It always install oracle-java8-installer instead openjdk 7. Please help me



apt-get install openjdk-7-jre





This question already has an answer here:




  • Installing Java 7 in 16.04 and using multiple Java versions

    2 answers








18.04 openjdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 10 '18 at 7:33









duongtan

613




613




marked as duplicate by karel, Kulfy, Zanna, Eric Carvalho, Fabby Dec 24 '18 at 22:29


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, Kulfy, Zanna, Eric Carvalho, Fabby Dec 24 '18 at 22:29


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
    – Kulfy
    Jul 10 '18 at 8:19










  • If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
    – Kulfy
    Jul 10 '18 at 8:20






  • 1




    thanks for the answer, but I want to install openjdk, not Oracle jdk
    – duongtan
    Jul 10 '18 at 14:53


















  • Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
    – Kulfy
    Jul 10 '18 at 8:19










  • If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
    – Kulfy
    Jul 10 '18 at 8:20






  • 1




    thanks for the answer, but I want to install openjdk, not Oracle jdk
    – duongtan
    Jul 10 '18 at 14:53
















Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
– Kulfy
Jul 10 '18 at 8:19




Ubuntu has removed JDK 7 from the repository. Also, it is no longer supported for any further updates. So you better install jdk8.
– Kulfy
Jul 10 '18 at 8:19












If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
– Kulfy
Jul 10 '18 at 8:20




If you still want it you can download from here oracle.com/technetwork/java/javase/downloads/…
– Kulfy
Jul 10 '18 at 8:20




1




1




thanks for the answer, but I want to install openjdk, not Oracle jdk
– duongtan
Jul 10 '18 at 14:53




thanks for the answer, but I want to install openjdk, not Oracle jdk
– duongtan
Jul 10 '18 at 14:53










2 Answers
2






active

oldest

votes


















1














Here you got a very good answer with a step-by-step instruction:

Download it here from Oracle.






share|improve this answer































    0














    I have installed OpenJDK 1.7 on Ubuntu 18.04



    Step 1. Install OpenJDK 1.7



    sudo dpkg -i <a href="https://packages.debian.org/sid/libjpeg62-turbo">libjpeg62-turbo_1.5.2-2+b1_amd64.deb</a><br>
    sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre-headless">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
    sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
    sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jdk">openjdk-7-jdk_7u161-2.6.12-1_amd64.deb</a><br>


    Step 2. Switch to OpenJDK 1.7



    export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH<br>


    Note: If you want to use javac command instead of openjdk 1.7, use below command



    sudo update-alternatives --config java





    share|improve this answer






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Here you got a very good answer with a step-by-step instruction:

      Download it here from Oracle.






      share|improve this answer




























        1














        Here you got a very good answer with a step-by-step instruction:

        Download it here from Oracle.






        share|improve this answer


























          1












          1








          1






          Here you got a very good answer with a step-by-step instruction:

          Download it here from Oracle.






          share|improve this answer














          Here you got a very good answer with a step-by-step instruction:

          Download it here from Oracle.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 24 '18 at 1:23









          zx485

          1,45231114




          1,45231114










          answered Nov 23 '18 at 16:23









          ileopoldes

          111




          111

























              0














              I have installed OpenJDK 1.7 on Ubuntu 18.04



              Step 1. Install OpenJDK 1.7



              sudo dpkg -i <a href="https://packages.debian.org/sid/libjpeg62-turbo">libjpeg62-turbo_1.5.2-2+b1_amd64.deb</a><br>
              sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre-headless">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
              sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
              sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jdk">openjdk-7-jdk_7u161-2.6.12-1_amd64.deb</a><br>


              Step 2. Switch to OpenJDK 1.7



              export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH<br>


              Note: If you want to use javac command instead of openjdk 1.7, use below command



              sudo update-alternatives --config java





              share|improve this answer




























                0














                I have installed OpenJDK 1.7 on Ubuntu 18.04



                Step 1. Install OpenJDK 1.7



                sudo dpkg -i <a href="https://packages.debian.org/sid/libjpeg62-turbo">libjpeg62-turbo_1.5.2-2+b1_amd64.deb</a><br>
                sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre-headless">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jdk">openjdk-7-jdk_7u161-2.6.12-1_amd64.deb</a><br>


                Step 2. Switch to OpenJDK 1.7



                export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH<br>


                Note: If you want to use javac command instead of openjdk 1.7, use below command



                sudo update-alternatives --config java





                share|improve this answer


























                  0












                  0








                  0






                  I have installed OpenJDK 1.7 on Ubuntu 18.04



                  Step 1. Install OpenJDK 1.7



                  sudo dpkg -i <a href="https://packages.debian.org/sid/libjpeg62-turbo">libjpeg62-turbo_1.5.2-2+b1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre-headless">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jdk">openjdk-7-jdk_7u161-2.6.12-1_amd64.deb</a><br>


                  Step 2. Switch to OpenJDK 1.7



                  export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH<br>


                  Note: If you want to use javac command instead of openjdk 1.7, use below command



                  sudo update-alternatives --config java





                  share|improve this answer














                  I have installed OpenJDK 1.7 on Ubuntu 18.04



                  Step 1. Install OpenJDK 1.7



                  sudo dpkg -i <a href="https://packages.debian.org/sid/libjpeg62-turbo">libjpeg62-turbo_1.5.2-2+b1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre-headless">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jre">openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb</a><br>
                  sudo dpkg -i <a href="https://packages.debian.org/experimental/openjdk-7-jdk">openjdk-7-jdk_7u161-2.6.12-1_amd64.deb</a><br>


                  Step 2. Switch to OpenJDK 1.7



                  export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH<br>


                  Note: If you want to use javac command instead of openjdk 1.7, use below command



                  sudo update-alternatives --config java






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 23 '18 at 13:12









                  Gaurav Gandhi

                  8901819




                  8901819










                  answered Dec 23 '18 at 2:18









                  Coco W.

                  1




                  1















                      Popular posts from this blog

                      Mouse cursor on multiple screens with different PPI

                      Agildo Ribeiro

                      Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”