How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?
7,227
Install the JDK with a PPA:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
And after that
sudo apt-get install oracle-java8-set-default
Check the installation:
% java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Later you can change the default Java with:
sudo update-alternatives --config java
Related videos on Youtube
Author by
Atul Kumar
Updated on September 18, 2022Comments
-
Atul Kumar almost 2 years
I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed
java-7-openjdk-i386
from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to use JDK1.7 or JDK1.8. After that I download the JDK1.8 "java-8-oracle" and set the path is as like that in$ gedit ~/.bsharc
and I write that line to set the path:JAVA_HOME=/usr/lib/jvm/java-8-oracle/bin export JAVA_HOME PATH=$PATH:$JAVA_HOME export PATH
-
Ron about 9 yearsso what's the problem?
-
Gujarat Santana over 7 yearsI think he forgot to refresh the ~/.bashrc
-