Install Oracle Java on Ubuntu Linux

Download JDK:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


mkdir /usr/lib/jvm

#sudo rm -r jdk1.8.0_102

Install
sudo tar -zxvf '/home/ponch/Downloads/jdk-8u102-linux-x64.tar.gz' -C  /usr/lib/jvm

#sudo tar -zxvf '/home/ponch/Downloads/jdk-8u102-linux-i586.tar.gz' -C  /usr/lib/jvm

 
#tar xzvf ~/Downloads/jdk-8u102-linux-x64.tar.gz
#sudo mv jdk1.7.0_21/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_102/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_102/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8.0_102/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javaws
 

Комментариев нет:

Отправить комментарий