I am trying to change java installed in boss Linux because am trying to install eclipse oxygen which needs java8. First I couldn't find where the jdk installed. Currently 1.7.0_73 installed. I just downloaded the tar.gz of jdk8. Extracted in a location. Setted java home and path pointing bin. But still am getting error during eclipse installation that version 1.8 is required.
-
Can you send a print of the error you are getting? It sounds like the instance of eclipse you are trying to run is using the old Java pathing to JDK-7......– Rann LifshitzCommented Mar 25, 2018 at 9:08
-
Yes exactly..it is showing that java installed is 1.7 73 required is 1.8 or above– ansariBECommented Mar 25, 2018 at 9:17
-
How are you running eclipse ? Which OS are you using ?– Rann LifshitzCommented Mar 25, 2018 at 10:12
-
Boss linux. Now its working. I started it from terminal. But if i double click it, it shows the error i reported. Is there any way to find where that 1.7 java installed? I tried to search it, but i couldnt find it.– ansariBECommented Mar 25, 2018 at 12:41
|
1 Answer
Well as Wikipedia states that
BOSS Linux is an "LSB certified" Linux distribution :
the software has been certified by the Linux Foundation
for compliance with the Linux Standard Base standard.
BOSS Linux is derived from Debian Linux.
Note that It is derived from Debian Linux
and uses apt
to handle packages for updates or upgrades. On that note, you just have to use apt
command to upgrade to version you want.
Installing java version 1.8
by installing OpenJDK v8
To install java version 1.8 (OpenJDK v8), type following on terminal :
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
If you only want to install the Java Runtime Environment :
sudo apt-get install openjdk-8-jre
Feel free to add-in more details to the answer.