{"id":482,"date":"2010-04-20T10:32:57","date_gmt":"2010-04-20T14:32:57","guid":{"rendered":"http:\/\/www.timelordz.com\/blog\/?p=482"},"modified":"2010-09-13T11:30:50","modified_gmt":"2010-09-13T15:30:50","slug":"oh-ubuntu-why-hast-though-forsaken-sun-java","status":"publish","type":"post","link":"https:\/\/www.timelordz.com\/blog\/2010\/04\/oh-ubuntu-why-hast-though-forsaken-sun-java\/","title":{"rendered":"Oh Ubuntu, Why Hast Though Forsaken Sun Java?"},"content":{"rendered":"<p>With Lucid, the standard Ubuntu repos no longer contain the Sun version of Java, having opted instead to just go with openjdk. While I can certainly understand the desire to have openjdk be the truly open solution, I am accustomed to the Sun version. Also, when using java-6-openjdk , I ran into a very annoying situation where apt kept running into the following issue when you attempted <em>any<\/em> transaction:<\/p>\n<p><span style=\"color: #00ccff;\">error adding signet.pl\/signet_ocspklasa3_pem.crt<br \/>\n error adding signet.pl\/signet_pca2_pem.crt<br \/>\n error adding signet.pl\/signet_pca3_pem.crt<br \/>\n error adding signet.pl\/signet_rootca_pem.crt<br \/>\n error adding signet.pl\/signet_tsa1_pem.crt<br \/>\n error adding spi-inc.org\/spi-ca-2003.crt<br \/>\n error adding spi-inc.org\/spi-cacert-2008.crt<br \/>\n error adding telesec.de\/deutsche-telekom-root-ca-2.crt<br \/>\n failed (VM used: java-6-openjdk).<br \/>\n dpkg: error processing ca-certificates-java (&#8211;configure):<br \/>\n subprocess installed post-installation script returned error exit status 1<\/span><\/p>\n<p>In addition, I was having trouble with the openjdk in Eclipse with Subversive and was longing for the Sun Java version. But it was nowhere to be found in the repos. Sigh.<\/p>\n<p>I Googled about and saw a lot of similar difficulties and frustration that the Sun version was not available. Sure, you can install it and the browser plugins, etc. manually, but really &#8211; why? Fortunately, I was able to find a simple solution to install sun-java6-jdk on Lucid!<\/p>\n<p>This very simple fix came from <a href=\"http:\/\/blog.reactive.org\/2010\/04\/suns-java-jdk-on-ubuntu-1004-beta1.html\" target=\"_blank\">this blog site<\/a>.<\/p>\n<p>Just remove openjdk if you already installed it:<\/p>\n<p><span style=\"color: #00ccff;\">sudo apt-get remove\u00a0 openjdk-6-jre icedtea6-plugin<\/span><\/p>\n<p>Now, set up the partners repo and install Sun Java from there:<\/p>\n<p><span style=\"color: #00ccff;\">sudo apt-get install python-software-properties<br \/>\n sudo add-apt-repository &#038;#34deb http:\/\/archive.canonical.com\/ lucid partner&#038;#34<br \/>\n sudo aptitude update<br \/>\n sudo aptitude install sun-java6-jdk<br \/>\nsudo apt-get install sun-java6-plugin<\/span><\/p>\n<p>Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Lucid, the standard Ubuntu repos no longer contain the Sun version of Java, having opted instead to just go with openjdk. While I can certainly understand the desire to have openjdk be the truly open solution, I am accustomed to the Sun version. Also, when using java-6-openjdk , I ran into a very annoying [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,40,41,43,44,21],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-apt-error","tag-lucid","tag-openjdk","tag-sun-java","tag-sun-java6","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":5,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}