{"id":594,"date":"2011-07-08T10:47:23","date_gmt":"2011-07-08T10:47:23","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=594"},"modified":"2011-07-08T10:58:41","modified_gmt":"2011-07-08T10:58:41","slug":"ubuntu-add-sun-java","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=594","title":{"rendered":"Ubuntu Add Sun JAVA"},"content":{"rendered":"<p>No worries. You can get the sun-java6-jdk on Ubuntu LTS 10.04. I am currently participating in the Atlassian Dragons Challenge and using Ubuntu 10.04 with Sun JDK<\/p>\n<p>1) First, click on System Menu &gt; Administration &gt; Software Sources<\/p>\n<p>2) Under the ,Other Software Tab, check Ubuntu Partner Repository<\/p>\n<p>3) Click Reload and issue the following command to get the JDK through Synaptic Package Manager or APT-get<\/p>\n<p>4) sudo apt-get install sun-java6-jdk and Voila :)<\/p>\n<p>&nbsp;<\/p>\n<h3>Setting JAVA_HOME<\/h3>\n<p>Some programs like Tomcat (bundled with most Atlassian products) need a JAVA_HOME variable set, so they know where Java is installed. This can be set system-wide in<tt>\/etc\/profile<\/tt>:<\/p>\n<div>\n<div>\n<pre>jturner:~$ sudo su -\r\nPassword:\r\nroot:~# cat &gt;&gt; \/etc\/profile\r\nJAVA_HOME=\/usr\/lib\/jvm\/java-6-sun\r\nexport JAVA_HOME\r\nroot:~#<\/pre>\n<\/div>\n<\/div>\n<p>The variable will be set for new terminals:<\/p>\n<div>\n<div>\n<pre>jturner:~$ echo $JAVA_HOME\r\n\/usr\/lib\/jvm\/java-6-sun\r\njturner:~$<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>No worries. You can get the sun-java6-jdk on Ubuntu LTS 10.04. I am currently participating in the Atlassian Dragons Challenge and using [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=594"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}