Install proprietary Oracle JDK in Debian 7.0 Wheezy

This is a YAP (yet another post) about how one can manually install Oracle’s proprietary JDK/JRE version (in Debian 7.0 Wheezy as an example). First of all, download fresh version of JDK/JRE from the Oracle website. Copy archive to desired location, in the following example we will use /usr/lib/jvm as an installation source directory. Unpack the archive and run next commands: sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java 1071 sudo update-alternatives --install /usr/bin/javac javac /media/mydisk/jdk/javac 1071 sudo update-alternatives --install /usr/bin/jcontrol jcontrol /media/mydisk/jdk/bin/jcontrol 1071 You may need read man pages for update-alternatives to check out the parameters and what they mean. ...

August 27, 2014 · 1 min · rodush