Mittwoch, 29. August 2012

Replacing OpenJDK with Oracle/Sun Java on Ubuntu and Mint

Ever wanted "the real thing" on your lovely Ubuntu or Mint installation when it comes to Java? Search no more, here's the solution: Duinsoft developed a very nice script / installer which does all the installation of the most recent Java Runtime from Oracle (formerly Sun) for you:

http://www.duinsoft.nl/packages.php?t=en

So in order to replace the pre-installed OpenJDK on your box you essentially need to follow the quick instructions ("Repository") on the site mentioned above plus purging the OpenJDK stuff afterwards with:

sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

After all the voodoo is over you should get the following prompt when doing a

java -version

Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)

(Note: Exact build numbers may vary, depending on when you installed the stuff.)

Best thing is: You don't need to all that installation mess again, the script from Duinsoft will take care of it in the future from now on.

0 Kommentare:

Kommentar veröffentlichen