{"id":25,"date":"2012-10-29T09:32:23","date_gmt":"2012-10-29T09:32:23","guid":{"rendered":"http:\/\/blog.nicovs.be\/?p=25"},"modified":"2012-11-21T11:14:40","modified_gmt":"2012-11-21T11:14:40","slug":"installing-sun-java-on-debian-squeeze","status":"publish","type":"post","link":"https:\/\/www.nicovs.be\/?p=25","title":{"rendered":"Installing Sun Java on Debian Squeeze"},"content":{"rendered":"<p>Sun Java is available thru the Non-Free Repo for Squeeze, to add it you must add<\/p>\n<pre lang=\"bash\">deb http:\/\/ftp.us.debian.org\/debian\/ squeeze main non-free<\/pre>\n<p>to your \/etc\/apt\/sources.list file. If I\u2019ve never been clear about how to do that you must open the file as sudo or root in any text editor.<\/p>\n<p>Once this is done you update your apt with<\/p>\n<pre lang=\"bash\">sudo apt-get update<\/pre>\n<p>Then essentially you type<\/p>\n<pre lang=\"bash\">apt-get install sun-java6-jdk<\/pre>\n<p>for the Java Dev Kit or choose sun-java6-jre if you just want the JRE for the use of Java.. I tend to pick the JDK because a few apps like it over the JRE.<\/p>\n<p>Note: You can test your Java version with java -version and if you don\u2019t get a Sun Version of Java as a reply then you need to type this:<\/p>\n<pre lang=\"bash\">update-alternatives --config java<\/pre>\n<p>and select the newly installed java which is something like\u2026<\/p>\n<p>There are 2 choices for the alternative java (providing \/usr\/bin\/java).<\/p>\n<blockquote><p>Selection Path Priority Status<\/p>\n<p>0 \/usr\/bin\/gij-4.4 1044 auto mode<br \/>\n1 \/usr\/bin\/gij-4.4 1044 manual mode<br \/>\n2 \/usr\/lib\/jvm\/java-6-sun\/jre\/bin\/java 63 manual mode<\/p><\/blockquote>\n<p>and in my case I chose # 2<\/p>\n<p>You should be good to go now.. keep in mind this is just java..<br \/>\nif you want the plugin it\u2019s<\/p>\n<pre lang=\"bash\">apt-get install sun-java6-plugin sun-java6-fonts<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sun Java is available thru the Non-Free Repo for Squeeze, to add it you must add deb http:\/\/ftp.us.debian.org\/debian\/ squeeze main non-free to your \/etc\/apt\/sources.list file. If I\u2019ve never been clear about how to do that you must open the file as sudo or root in any text editor. Once this is done you update your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-debian","category-java"],"_links":{"self":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":8,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}