Nothing better than after 2 years using Windows coming back to linux world, and I find out a common problem that developers suffer: install Java from Oracle, but its quite simple, just follow the steps:
1 - Download and extract to your home folder
2 - Copy the folder extracted to /usr/lib/jvm
> cp -R /home/diego/jdk1.7.0_51 /usr/lib/jvm/jdk1.7.0_51
3 - Change the PATH variable that its located in /etc/enviroment
> sudo vi /etc/enviroment
4 - Add to your PATH the JAVA_HOME, probably it will look like
> PATH="/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.7.0_51"
JAVA_HOME="/usr/lib/jvm/jdk1.7.0_51"
5 - Type the command below
> sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/bin/java 2000
6 - Choose the appropriate version
> update-alternatives --config java
Nenhum comentário:
Postar um comentário