A PCRE internal error occured. This might be caused by a faulty plugin

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
applications:java:start [2013/12/16 11:36]
admin
applications:java:start [2015/09/06 01:20] (current)
admin [Replacing OpenJDK with Oracle Java7]
Line 1: Line 1:
 ====== Oracle Java7 JDK ====== ====== 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 (PHPStorm), requires Oracle Java7 and nothing else.+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. 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.
  
Line 9: Line 18:
 [[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]] [[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]]
  
-===== Add the Oracle Java 7 Repository to Your Sources ​=====+**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>​ <​code>​
 su - su -
Line 15: Line 27:
 echo "​deb-src 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 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
 +</​code>​
 +
 +=== Install the Oracle Java7 Package ===
 +<​code>​
 apt-get update apt-get update
 apt-get install oracle-java7-installer apt-get install oracle-java7-installer
 </​code>​ </​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.