标签:wget ash ppa open tools setting version lis nload
apt-get
is easy. First, update the package index:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
sudo update-alternatives --config java
javac
):
sudo update-alternatives --config javac
JAVA_HOME
environment variable, which is needed for some programs, first find out the path of your Java installation:
sudo update-alternatives --config java
/usr/lib/jvm/java-7-oracle
/usr/lib/jvm/java-6-openjdk-amd64
/usr/lib/jvm/java-7-oracle
/etc/environment
:
sudo nano /etc/environment
JAVA_HOME="YOUR_PATH"
source /etc/environment
echo $JAVA_HOME(
If it returns the just set path, the environment variable has been set successfully. If it doesn‘t, please make sure you followed all steps correctly. )
标签:wget ash ppa open tools setting version lis nload
原文地址:http://www.cnblogs.com/yangzsnews/p/7496694.html