{"id":238,"date":"2009-03-02T16:25:34","date_gmt":"2009-03-02T15:25:34","guid":{"rendered":"http:\/\/lackovic.wordpress.com\/?p=238"},"modified":"2009-03-02T16:25:34","modified_gmt":"2009-03-02T15:25:34","slug":"install-sun-jdk-1-6-on-centos","status":"publish","type":"post","link":"https:\/\/scalab.dimes.unical.it\/lackovic\/install-sun-jdk-1-6-on-centos\/","title":{"rendered":"Install Sun JDK 1.6 on CentOS"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-239\" title=\"90px-Java_logo\" src=\"http:\/\/scalab.dimes.unical.it\/lackovic\/wp-content\/uploads\/sites\/2\/2010\/02\/90px-java_logo.png\" alt=\"\" width=\"90\" height=\"165\" \/> <a href=\"http:\/\/www.centos.org\/\"><img loading=\"lazy\" class=\"alignnone\" src=\"http:\/\/weka4ws.files.wordpress.com\/2007\/10\/centos3.png\" alt=\"CentOS logo\" width=\"381\" height=\"90\" \/><\/a><\/p>\n<p>If you want to create the RPMs by yourself follow all the 3 steps, otherwise you can download the RPMs I created (<a href=\"http:\/\/si.deis.unical.it\/lackovic\/java-1.6.0-sun-1.6.0.11-1jpp.i586.rpm\">this<\/a>,\u00a0<a href=\"http:\/\/si.deis.unical.it\/lackovic\/java-1.6.0-sun-devel-1.6.0.11-1jpp.i586.rpm\">this<\/a> and\u00a0<a href=\"http:\/\/si.deis.unical.it\/lackovic\/java-1.6.0-sun-plugin-1.6.0.11-1jpp.i586.rpm\">this<\/a>) and skip the first 2 steps.<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li>as root\u00a0run:\n<pre>root:# yum install -y rpm-build gcc gcc-c++ redhat-rpm-config<\/pre>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>as\u00a0normal user:\n<ul>\n<li>download from the\u00a0<a href=\"http:\/\/mirrors.dotsrc.org\/jpackage\/1.7\/generic\/SRPMS.non-free\/\" target=\"_blank\">JPackage archive<\/a> the latest nosrc.rpm file (at the time of writing it is\u00a0java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm) and place it in your user home directory;<\/li>\n<p>&nbsp;<\/p>\n<li>create the RPM building environment by running the two commands below:\n<pre>user:$ mkdir -p ~\/rpmbuild\/{BUILD,RPMS,SOURCES,SPECS,SRPMS}\nuser:$ echo '%_topdir %(echo $HOME)\/rpmbuild' &gt; ~\/.rpmmacros<\/pre>\n<\/li>\n<p>&nbsp;<\/p>\n<li>download Sun JDK 1.6 update xx from\u00a0<a href=\"http:\/\/java.sun.com\/products\/archive\/\" target=\"_blank\">here<\/a> choosing the same version of the nosrc.rpm file you downloaded in the previous step (don&#8217;t get the rpm one) and place it in your ~\/rpmbuild\/SOURCES directory;<\/li>\n<p>&nbsp;<\/p>\n<li>go in your home directory and rebuild the packages by running:\n<pre>user:$ rpmbuild --rebuild java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>as root:\n<ul>\n<li>go in your user&#8217;s ~\/rpmbuild\/RPMS\/i586\/ and run the following commands:\n<pre>root:# yum --nogpgcheck localinstall -y java-1.6.0-sun-1.6.0.11-1jpp.i586.rpm\nroot:# yum --nogpgcheck localinstall -y java-1.6.0-sun-devel-1.6.0.11-1jpp.i586.rpm\nroot:# yum --nogpgcheck localinstall -y java-1.6.0-sun-plugin-1.6.0.11-1jpp.i586.rpm<\/pre>\n<\/li>\n<p>&nbsp;<\/p>\n<li>configure the Alternatives system and choose the JDK you want:\n<pre>root:# alternatives --config java<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you want to create the RPMs by yourself follow all the 3 steps, otherwise you can download the RPMs I created (this,\u00a0this and\u00a0this) and skip the first 2 steps. &nbsp; as root\u00a0run: root:# yum install -y rpm-build gcc gcc-c++ redhat-rpm-config &nbsp;&nbsp; as\u00a0normal user: download from the\u00a0JPackage archive the latest nosrc.rpm file (at the time &hellip; <a href=\"https:\/\/scalab.dimes.unical.it\/lackovic\/install-sun-jdk-1-6-on-centos\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Sun JDK 1.6 on CentOS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts\/238"}],"collection":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":0,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"wp:attachment":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}