====== Oracle Java7 JDK ====== Sometimes you really need to use Oracle Java(7) instead of OpenJDK that comes installed with the basic LMDE. In my case it is because my IDE of choice ([[applications:devtools:phpstorm|PHPStorm]]), requires Oracle Java7 and nothing else. === Installed OpenJDK Version === <code> java -version java version "1.7.0_21" OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) </code> ==== Replacing OpenJDK with Oracle Java7 ==== Scanning the Internet brought me to many explanations on how it could be achieved, but many involved removing the already available OpenJDK environment. This didn't sound really satisfactory to me as others might expect to find the OpenJDK environment available and it could cause trouble at one point or another. Also a complete manual (de)install process of such an important piece of software, alarmed me a little regarding the compatibility with future system updates. I finally found a nice solution to this problem here: [[http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html|Install Oracle Java 7 in Ubuntu via PPA Repository]]. Although that solution is for Ubuntu and uses a ppa, which is not working in LMDE, thank God, they also offer a Debian based solution, you can read all about it here:\\ [[http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html|How To Install Oracle Java 7 In Debian Via Repository]] **UPDATE:** It's also possible now to **[[http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html|install Oracle JAVA 8 in Debian using the WebUpd8 Java PPA repository]]**.\\ Which is basically exactly the same procedure but the source list must state //**trusty**// instead of //**precise**//. === Add the Oracle Java 7 Repository to Your Sources === <code> su - echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 </code> === Install the Oracle Java7 Package === <code> apt-get update apt-get install oracle-java7-installer </code> You'll have to accepts the Oracle license in order to complete the process. === Verify Oracle Java7 is Activated === <code> java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) </code> This is it!\\ I don't think it could be simpler.