<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rule of Tech &#187; centos</title>
	<atom:link href="http://ruleoftech.com/journal/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://ruleoftech.com</link>
	<description>Everything and nothing but still something about Tech</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Sun JDK 1.6 on CentOS</title>
		<link>http://ruleoftech.com/journal/installing-sun-jdk-1-6-on-centos</link>
		<comments>http://ruleoftech.com/journal/installing-sun-jdk-1-6-on-centos#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:28:52 +0000</pubDate>
		<dc:creator>Marko</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://ruleoftech.com/?p=138</guid>
		<description><![CDATA[<p>CentOS doesn&#8217;t have a package for Sun JDK so it has to installed manually. It&#8217;s fairly easy but there are some steps to do that. This guide has been tested on CentOS 5.4 x64_86.</p>
<p><strong>Step 1. Initial setup for building RPM</strong><br />
-!- Do this with a non-root user</p>
<ol>
<li>Create ~/.rpmmacros
<ul class="listcodeblock">
<li>
<pre>
$ vim ~/.rpmmacros
%_topdir /home/<username>/rpmbuild
%_tmppath %{_topdir}/tmp
</username></pre>
</li>
</ul>
</li>
<li>Create needed folders:
<ul class="listcodeblock">
<li>
<pre>
$ mkdir -p ~/rpmbuild/{SOURCES,SRPMS,SPECS,RPMS,tmp,BUILD}
</pre>
</li>
</ul>
</li>
<li>Build environment needs to be complete.</li>&#8230; <a href="http://ruleoftech.com/journal/installing-sun-jdk-1-6-on-centos" class="read_more">Continue reading <span class=\\\"meta-nav\\\">&#8594;</span></a></ol>]]></description>
			<content:encoded><![CDATA[<p>CentOS doesn&#8217;t have a package for Sun JDK so it has to installed manually. It&#8217;s fairly easy but there are some steps to do that. This guide has been tested on CentOS 5.4 x64_86.</p>
<p><strong>Step 1. Initial setup for building RPM</strong><br />
-!- Do this with a non-root user</p>
<ol>
<li>Create ~/.rpmmacros
<ul class="listcodeblock">
<li>
<pre>
$ vim ~/.rpmmacros
%_topdir /home/<username>/rpmbuild
%_tmppath %{_topdir}/tmp
</pre>
</li>
</ul>
</li>
<li>Create needed folders:
<ul class="listcodeblock">
<li>
<pre>
$ mkdir -p ~/rpmbuild/{SOURCES,SRPMS,SPECS,RPMS,tmp,BUILD}
</pre>
</li>
</ul>
</li>
<li>Build environment needs to be complete. Some needed packages are:
<ul class="listcodeblock">
<li>
<pre>
$ sudo yum install -y rpm-build gcc gcc-c++ redhat-rpm-config
</pre>
</li>
</ul>
</li>
</ol>
<p><strong>Step 2. Installing your favorite JDK</strong></p>
<ol>
<li>Download Sun JDK 1.6 update 14 from Sun Java download or the <a href="http://java.sun.com/products/archive/">Sun JDK archive</a>.
<ul>
<li>Choose the correct platform (for me it&#8217;s Linux x64) and download jdk-6u18-linux-x64-rpm.bin</li>
</ul>
</li>
<li>Give it executable rights: <code>$ chmod 755 jdk-6u18-linux-x64-rpm.bin</code></li>
<li>Run the binary to extract it into RPM form: <code>$ ./jdk-6u18-linux-x64-rpm.bin</code></li>
<li>Install it:
<ul class="listcodeblock">
<li>
<pre>
$ sudo rpm -Uvh jdk-6u18-linux-amd64.rpm
</pre>
</li>
</ul>
</li>
<li>Log out and in again to make the changes in the paths take effect</li>
<li>Check the install
<ul class="listcodeblock">
<li>
<pre>
$ java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
</pre>
</li>
</ul>
</li>
<li>Java is now installed on <code>/usr/bin/java</code></li>
</ol>
<h2  class="related_post_title">Related journal entries</h2><ul class="related_post"><li><a href="http://ruleoftech.com/journal/using-cacert-org-signed-certificates-for-tls" title="Using CAcert.org signed certificates for TLS">Using CAcert.org signed certificates for TLS</a></li><li><a href="http://ruleoftech.com/journal/wordpress-mod_rewrite-rules-taking-over-mod_status-and-mod_info" title="WordPress mod_rewrite rules taking over mod_status and mod_info">WordPress mod_rewrite rules taking over mod_status and mod_info</a></li><li><a href="http://ruleoftech.com/journal/installing-apache-tomcat-6-on-centos" title="Installing Apache Tomcat 6 on CentOS">Installing Apache Tomcat 6 on CentOS</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ruleoftech.com/journal/installing-sun-jdk-1-6-on-centos/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

