Announcement

Collapse
No announcement yet.

HOWTO: get rid of OpenJDK and get REAL Sun JDK back

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HOWTO: get rid of OpenJDK and get REAL Sun JDK back

    Because once again Canonical is obsessed with OpenJDK/IcedTea which NEVER EVER WORKS FOR ANYTHING I NEED, I had to fight to figure out how to get real Sun 6 JDK back.

    To fix:
    1) Enable partner sources. My /etc/apt/sources.list only had partner sources for source code enabled. Edit your sources.list and change deb-src to deb for the line containing 'lucid partner'.

    2) apt-get update; apt-get install sun-java6-jdk

    3) update-java-alternatives -s java-6-sun

    And because that's not fun enough, the java6 plugin for firefox will FAIL to install. To fix this you need to:
    cd /usr/lib/mozilla/plugins
    rm libjavaplugin.so
    ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so libjavaplugin.so

    After this, you should be able to use the proper sun Java6 VM.
Working...
X