Friday, July 17, 2009

» TULH: latest openJDK 6 on openSUSE

(TULH = Trivial (or pointless ?) Ubuntu-Like Howto)


Here is how to install the latest openJDK (the GPL'd branch of Sun's Java Virtual Machine) version 6 (the currently stable branch) on openSUSE 11.0-11.1

As root

You can simply copy/paste those blocks of commands into a shell. But note that they must be executed as the root user and, hence, first open a terminal (e.g. konsole on KDE, gnome-terminal on GNOME, xterm, urxvt, putty, whatever does the job), switch to the root user using the following command:
su -
Then enter the password of the root user when prompted to do so.

Install the JRE

VERSION=$(grep ^VERSION /etc/SuSE-release|cut -f3 -d" ") zypper addrepo -r \\ openSUSE_$VERSION/Java:openjdk6:Factory.repo zypper refresh Java_openjdk6_Factory zypper install java-1_6_0-openjdk

Install the Java browser plugin

If you also want to install the browser plugin (to run Java applets and Webstart):
zypper install java-1_6_0-openjdk-plugin

Install the Java Development Kit

And if you also want to install the JDK to compile Java sources:
zypper install java-1_6_0-openjdk-devel

Labels: , , ,


Post a Comment

Links to this post:

Create a Link

<< Home