- Download Java SE 7 JDK for Linux x86 archive. At the time of writing, the file I’m using is jdk-7u21-linux-i586.tar.gz, but the filename will change as updates are released.
- Apparently there is no longer a jvm folder, so create one.
sudo mkdir /usr/lib/jvm - Move the archive to the jvm folder
sudo mv jdk-7u21-linux-i586.tar.gz /usr/lib/jvm/ - Change to the jvm folder and extract the JDK from the archive
cd /usr/lib/jvm
sudo tar zxvf jdk-7u21-linux-i586.tar.gz
Everything will be extracted to a new jdk1.7.0_21 folder and you can delete the archive file now. - Make symbolic links to the new java binary.
sudo ln -s -b /usr/lib/jvm/jdk1.7.0_21/jre/bin/java /etc/alternatives/java
sudo ln -s -b /usr/lib/jvm/jdk1.7.0_21/jre/bin/java /usr/bin/java - Double-check the version
java -version
Para rodar jnlp
sudo apt-get install icedtea-netx
Depois recriar os links
Make symbolic links to the new java binary.
sudo ln -s -b /usr/lib/jvm/jdk1.7.0_21/jre/bin/java /etc/alternatives/java
sudo ln -s -b /usr/lib/jvm/jdk1.7.0_21/jre/bin/java /usr/bin/java
Referência:
http://www.printandweb.ca/2013/04/manually-install-oracle-jdk-7-for.html
http://www.upubuntu.com/2012/12/how-to-run-jnlp-files-under-ubuntulinux.html