Installing Java 7 in 16.04 and using multiple Java versions The 2019 Stack Overflow Developer Survey Results Are InHow can i install jdk7 on ubuntu 18.04 lts 64bit?How to install Java 7 or jkd 7 on Ubuntu 16.04?How to install openjdk 7 on ubuntu 18.04I'm trying to install Open JRE 8 but it says this and doesn't installHow can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?Switch between multiple java versionsHow can install openjdk7 on ubuntu 17.10?oracle-java8-installer results in “apt” removal?Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jarHow to remove the binary format already installed by openjdk-7How to install java-commonError while setting up jdk8 on Ubuntu 14.04LTSUnable to install Oracle Java JDKVarious errors while installing java 8 on Ubuntu 16.04 (64 bit) in VMCan't install Oracle Java 9E: Sub-process /usr/bin/dpkg returned an error code (1) installing jdk and NetBeansHow to install Java 9 on Ubuntu?
How can I define good in a religion that claims no moral authority?
Loose spokes after only a few rides
Button changing its text & action. Good or terrible?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
"as much details as you can remember"
Dropping list elements from nested list after evaluation
Geography at the pixel level
Is it okay to consider publishing in my first year of PhD?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
What information about me do stores get via my credit card?
How to type a long/em dash `—`
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
A word that means fill it to the required quantity
How to display lines in a file like ls displays files in a directory?
Why are there uneven bright areas in this photo of black hole?
Pokemon Turn Based battle (Python)
What do these terms in Caesar's Gallic wars mean?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Does adding complexity mean a more secure cipher?
The phrase "to the numbers born"?
How to support a colleague who finds meetings extremely tiring?
Flight paths in orbit around Ceres?
What is this sharp, curved notch on my knife for?
Currents/voltages graph for an electrical circuit
Installing Java 7 in 16.04 and using multiple Java versions
The 2019 Stack Overflow Developer Survey Results Are InHow can i install jdk7 on ubuntu 18.04 lts 64bit?How to install Java 7 or jkd 7 on Ubuntu 16.04?How to install openjdk 7 on ubuntu 18.04I'm trying to install Open JRE 8 but it says this and doesn't installHow can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?Switch between multiple java versionsHow can install openjdk7 on ubuntu 17.10?oracle-java8-installer results in “apt” removal?Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jarHow to remove the binary format already installed by openjdk-7How to install java-commonError while setting up jdk8 on Ubuntu 14.04LTSUnable to install Oracle Java JDKVarious errors while installing java 8 on Ubuntu 16.04 (64 bit) in VMCan't install Oracle Java 9E: Sub-process /usr/bin/dpkg returned an error code (1) installing jdk and NetBeansHow to install Java 9 on Ubuntu?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.
I also want to switch between Java 7 and 8 to update a project I am working on. I am a new Ubuntu user, so be very specific.
added:
12/31/2017
gero@4790k:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
When I try to use:
gero@4790k:~$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is a virtual package provided by:
oracle-java9-installer 9.0.1-1~webupd8~0
oracle-java8-installer 8u151-1~webupd8~0
oracle-java7-installer 7u80+7u60arm-0~webupd8~1
You should explicitly select one to install.
E: Package 'openjdk-7-jdk' has no installation candidate
I don't even know how to select the the java installer 7u80.
Or if you can tell me how to install jdk-7u80-linux-x64.tar.gz or jdk-7u80-linux-x64.rpm .
software-installation java openjdk
|
show 1 more comment
I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.
I also want to switch between Java 7 and 8 to update a project I am working on. I am a new Ubuntu user, so be very specific.
added:
12/31/2017
gero@4790k:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
When I try to use:
gero@4790k:~$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is a virtual package provided by:
oracle-java9-installer 9.0.1-1~webupd8~0
oracle-java8-installer 8u151-1~webupd8~0
oracle-java7-installer 7u80+7u60arm-0~webupd8~1
You should explicitly select one to install.
E: Package 'openjdk-7-jdk' has no installation candidate
I don't even know how to select the the java installer 7u80.
Or if you can tell me how to install jdk-7u80-linux-x64.tar.gz or jdk-7u80-linux-x64.rpm .
software-installation java openjdk
2
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
1
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
1
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48
|
show 1 more comment
I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.
I also want to switch between Java 7 and 8 to update a project I am working on. I am a new Ubuntu user, so be very specific.
added:
12/31/2017
gero@4790k:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
When I try to use:
gero@4790k:~$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is a virtual package provided by:
oracle-java9-installer 9.0.1-1~webupd8~0
oracle-java8-installer 8u151-1~webupd8~0
oracle-java7-installer 7u80+7u60arm-0~webupd8~1
You should explicitly select one to install.
E: Package 'openjdk-7-jdk' has no installation candidate
I don't even know how to select the the java installer 7u80.
Or if you can tell me how to install jdk-7u80-linux-x64.tar.gz or jdk-7u80-linux-x64.rpm .
software-installation java openjdk
I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.
I also want to switch between Java 7 and 8 to update a project I am working on. I am a new Ubuntu user, so be very specific.
added:
12/31/2017
gero@4790k:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
When I try to use:
gero@4790k:~$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is a virtual package provided by:
oracle-java9-installer 9.0.1-1~webupd8~0
oracle-java8-installer 8u151-1~webupd8~0
oracle-java7-installer 7u80+7u60arm-0~webupd8~1
You should explicitly select one to install.
E: Package 'openjdk-7-jdk' has no installation candidate
I don't even know how to select the the java installer 7u80.
Or if you can tell me how to install jdk-7u80-linux-x64.tar.gz or jdk-7u80-linux-x64.rpm .
software-installation java openjdk
software-installation java openjdk
edited Jan 14 '18 at 7:46
karel
61k13132155
61k13132155
asked Dec 31 '17 at 1:02
GeemoGeemo
681210
681210
2
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
1
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
1
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48
|
show 1 more comment
2
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
1
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
1
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48
2
2
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
1
1
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
1
1
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48
|
show 1 more comment
3 Answers
3
active
oldest
votes
The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.
To install openjdk-7-jdk in Ubuntu 14.04 run:
sudo apt-get install openjdk-7-jdk
Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.
add a comment |
You didn't mention which version of ubuntu you are using. I presume as 14.04.
As you said that you have already installed java 8. Install java 7 by following command:
sudo apt-get install openjdk-7-jdk.
Then you can switch Java versions by the following command:
sudo update-alternatives --config java
Select the version that you need and press enter. You can check which version you are using by command: java -version
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
add a comment |
The answer is no more applicable for Version 16.04 and 18.04.
For 18.04, view this answer: How can i install jdk7 on ubuntu 18.04 lts 64bit? by Cliffton Fernandes
Additional information: The tar.gz file is no more available on the oracle web pages but can be found at CERN: http://monalisa.cern.ch/MONALISA/download/java/
Best regards,
Karsten
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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%2f990951%2finstalling-java-7-in-16-04-and-using-multiple-java-versions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.
To install openjdk-7-jdk in Ubuntu 14.04 run:
sudo apt-get install openjdk-7-jdk
Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.
add a comment |
The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.
To install openjdk-7-jdk in Ubuntu 14.04 run:
sudo apt-get install openjdk-7-jdk
Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.
add a comment |
The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.
To install openjdk-7-jdk in Ubuntu 14.04 run:
sudo apt-get install openjdk-7-jdk
Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.
The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.
To install openjdk-7-jdk in Ubuntu 14.04 run:
sudo apt-get install openjdk-7-jdk
Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.
edited Jan 1 '18 at 22:27
answered Dec 31 '17 at 5:22
karelkarel
61k13132155
61k13132155
add a comment |
add a comment |
You didn't mention which version of ubuntu you are using. I presume as 14.04.
As you said that you have already installed java 8. Install java 7 by following command:
sudo apt-get install openjdk-7-jdk.
Then you can switch Java versions by the following command:
sudo update-alternatives --config java
Select the version that you need and press enter. You can check which version you are using by command: java -version
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
add a comment |
You didn't mention which version of ubuntu you are using. I presume as 14.04.
As you said that you have already installed java 8. Install java 7 by following command:
sudo apt-get install openjdk-7-jdk.
Then you can switch Java versions by the following command:
sudo update-alternatives --config java
Select the version that you need and press enter. You can check which version you are using by command: java -version
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
add a comment |
You didn't mention which version of ubuntu you are using. I presume as 14.04.
As you said that you have already installed java 8. Install java 7 by following command:
sudo apt-get install openjdk-7-jdk.
Then you can switch Java versions by the following command:
sudo update-alternatives --config java
Select the version that you need and press enter. You can check which version you are using by command: java -version
You didn't mention which version of ubuntu you are using. I presume as 14.04.
As you said that you have already installed java 8. Install java 7 by following command:
sudo apt-get install openjdk-7-jdk.
Then you can switch Java versions by the following command:
sudo update-alternatives --config java
Select the version that you need and press enter. You can check which version you are using by command: java -version
edited Dec 31 '17 at 6:23
answered Dec 31 '17 at 6:13
janasaiarunjanasaiarun
172214
172214
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
add a comment |
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
The OP can't find Java 7 which is in 14.04 but he can find Java 8 which is not in 14.04, so by both counts it appears that the OP is not using Ubuntu 14.04. Otherwise by some magic trick the OP would have managed to see the package that is not there in 14.04 while overlooking the package that is there in 14.04, so if you have to guess what release the OP is using a better guess would be either 16.04 or 17.10.
– karel
Dec 31 '17 at 7:23
add a comment |
The answer is no more applicable for Version 16.04 and 18.04.
For 18.04, view this answer: How can i install jdk7 on ubuntu 18.04 lts 64bit? by Cliffton Fernandes
Additional information: The tar.gz file is no more available on the oracle web pages but can be found at CERN: http://monalisa.cern.ch/MONALISA/download/java/
Best regards,
Karsten
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
The answer is no more applicable for Version 16.04 and 18.04.
For 18.04, view this answer: How can i install jdk7 on ubuntu 18.04 lts 64bit? by Cliffton Fernandes
Additional information: The tar.gz file is no more available on the oracle web pages but can be found at CERN: http://monalisa.cern.ch/MONALISA/download/java/
Best regards,
Karsten
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
The answer is no more applicable for Version 16.04 and 18.04.
For 18.04, view this answer: How can i install jdk7 on ubuntu 18.04 lts 64bit? by Cliffton Fernandes
Additional information: The tar.gz file is no more available on the oracle web pages but can be found at CERN: http://monalisa.cern.ch/MONALISA/download/java/
Best regards,
Karsten
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The answer is no more applicable for Version 16.04 and 18.04.
For 18.04, view this answer: How can i install jdk7 on ubuntu 18.04 lts 64bit? by Cliffton Fernandes
Additional information: The tar.gz file is no more available on the oracle web pages but can be found at CERN: http://monalisa.cern.ch/MONALISA/download/java/
Best regards,
Karsten
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 days ago
De SpecialKDe SpecialK
11
11
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
De SpecialK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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.
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%2f990951%2finstalling-java-7-in-16-04-and-using-multiple-java-versions%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
Have a look at askubuntu.com/questions/740757/….
– mattias
Dec 31 '17 at 1:16
1
Ok, I alredy installed java 8 but I don't know how to install java 7
– Geemo
Dec 31 '17 at 1:34
1
@mattias That link answers half of the question. What are you going to do about answering the other half? Geemo is probably using either Ubuntu 16.04 or Ubuntu 17.10 because Ubuntu 17.04 will be EOL within a month.
– karel
Dec 31 '17 at 5:51
Have a look here.. howtodojo.com/2017/07/install-java-7-ubuntu-16-04
– janasaiarun
Jan 1 '18 at 13:59
Welcome to Ask Ubuntu! We’re sorry, but Ask Ubuntu is not a forum, but a Question & Answer site: it works best if you ask one question, so you can receive one answer. When you ask multiple questions, you need to find one expert versed in multiple areas, which becomes unlikelier the more questions you put into, well, one question! ;-) So please, split up your question into multiple questions and drop me a comment so I can answer one of your questions.
– David Foerster
Jan 1 '18 at 14:48