rdgerma.blogg.se

How to install openjdk 7 on linux
How to install openjdk 7 on linux















Lrwxrwxrwx 1 root root 27 Aug 26 20:05 /usr/bin/javac -> /usr/java/default/bin/javac Lrwxrwxrwx 1 root root 26 Aug 26 20:05 /usr/bin/java -> /usr/java/default/bin/java Lrwxrwxrwx 1 root root 4 Sep 2 10:55 latest -> jdk7 As a working example, here is my installation (note that for my purposes I needed both the 64-bit AND 32-bit versions of both the Java 7 AND Java 6 JDKs, so there's a lot): # ls -al /usr/java/ĭrwxr-xr-x 6 root root 4096 Sep 2 11:02. Obviously, you'll have to fill in some blanks here, but you should get the picture.

  • # ln -s /usr/java/default/bin/javaws /usr/bin/javaws.
  • # ln -s /usr/java/default/bin/javadoc /usr/bin/javadoc.
  • # ln -s /usr/java/default/bin/javah /usr/bin/javah.
  • # ln -s /usr/java/default/bin/javac /usr/bin/javac.
  • # ln -s /usr/java/default/bin/java /usr/bin/java.
  • # ln -s /usr/java/latest /usr/java/default.
  • # ln -s /usr/java/jdkx /usr/java/latest.
  • # ln -s /usr/java/jdkx.x.x_xx /usr/java/jdkx.
  • # mv jdkx.x.x_xx /usr/java (or, if JRE, this will be the extracted JRE directory).
  • how to install openjdk 7 on linux

  • # tar -xzvf jdk-xxx-linux-圆4.tar.gz (or whichever one you downloaded).
  • Perform the following as root or using sudo:.
  • how to install openjdk 7 on linux

  • For the JDK, get jdk-xxx-linux-圆4.tar.gz if you have a 64-bit machine or if 32-bit.
  • For the JRE, get jre-xxx-linux-圆4.tar.gz if you have a 64-bit machine or if 32-bit.
  • How to install openjdk 7 on linux download#

  • Download JRE 7 (or JDK 7 if you want to develop) from.
  • They are more trouble than they're worth, and always way behind the latest updates.
  • Ignore (and uninstall) any JREs or JDKs bundled with / shipped with your distribution.
  • I recently had to install Java 7 on CentOS, openSUSE and Ubuntu, and after much fretting and research, finally settled on this, which works on all three flavors:















    How to install openjdk 7 on linux