Code: Select all
echo "deb http://www.duinsoft.nl/pkg debs all" | sudo tee /etc/apt/sources.list.d/oracle-java.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
sudo apt-get update
sudo apt-get install update-sun-jre
Code: Select all
$ sudo update-sun-jre -v -i install
Code: Select all
Usage: update-sun-jre [OPTION]... COMMAND
Install, upgrade or remove the Oracle (Sun) Java 6 Runtime Environment from
www.java.com.
Options:
-a force installation of a 32 bit runtime on a 64 bit system (will
also work the other way around but for downloading only!)
-c clean up other installations (in /opt/java) during installation
-f shorten timeouts on wget actions
-h, --help display this text and exit
-i force installation of the runtime even if not strictly necessary
-r reload the info page whether it has been cached or not
-v be verbose
The unpack messages of the binary package will never be echoed on screen.
Commands:
install download the binary package from www.java.com and install it
remove remove the package (only after manual installation)
The below is only tested on LMDE, not sure how/whether it works on Ubuntu Mint editions.
Code: Select all
sudo update-alternatives --config [jar|java|java_vm|javaws|jcontrol|jexec]
Code: Select all
$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /opt/java/64/jre1.6.0_30/bin/java 2000 auto mode
1 /opt/java/64/jre1.6.0_30/bin/java 2000 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
Press enter to keep the current choice[*], or type selection number:
$ update-alternatives --config javaws
There are 2 choices for the alternative javaws (providing /usr/bin/javaws).
Selection Path Priority Status
------------------------------------------------------------
* 0 /opt/java/64/jre1.6.0_30/bin/javaws 2000 auto mode
1 /opt/java/64/jre1.6.0_30/bin/javaws 2000 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 manual mode