How to install openjdk 7 on ubuntu 18.04 [duplicate]
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
18.04 openjdk
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.
add a comment |
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
18.04 openjdk
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
add a comment |
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
18.04 openjdk
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
18.04 openjdk
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Here you got a very good answer with a step-by-step instruction:
Download it here from Oracle.
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here you got a very good answer with a step-by-step instruction:
Download it here from Oracle.
add a comment |
Here you got a very good answer with a step-by-step instruction:
Download it here from Oracle.
add a comment |
Here you got a very good answer with a step-by-step instruction:
Download it here from Oracle.
Here you got a very good answer with a step-by-step instruction:
Download it here from Oracle.
edited Nov 24 '18 at 1:23
zx485
1,45231114
1,45231114
answered Nov 23 '18 at 16:23
ileopoldes
111
111
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Dec 23 '18 at 13:12
Gaurav Gandhi
8901819
8901819
answered Dec 23 '18 at 2:18
Coco W.
1
1
add a comment |
add a comment |
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