How to correctly remove OpenJDK and JRE and set the system use only and only Sun JDK and JRE?

Posted by Ivan on Ask Ubuntu See other posts from Ask Ubuntu or by Ivan
Published on 2011-01-11T21:46:54Z Indexed on 2011/01/12 0:59 UTC
Read the original article Hit count: 618

Filed under:

Ubuntu seems to favour OpenJDK/JRE very much over Sun JDK/JRE. Even after I installed Sun JRE, JDK and plugin and spent some time plucking out OpenJDK-related packages, apt-get has installed them back with some packages as a dependency. Can this behaviour be corrected in favour of Sun Java packages? I'd like to have one and only Java stack installed (yes, it's a bit of OCD, but I like to have my systems clean) and want it to be Sun Java.

Update: as Marcos Roriz notes, the problem seems to be in default-jre (on which Java-dependent packages use to depend) pointing to OpenJDK, so the question seems to go about how to hack default-jre/default-jdk to point to Sun Java.

© Ask Ubuntu or respective owner

Related posts about java