<?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>Alessandro Melandri &#187; JDK</title>
	<atom:link href="http://www.melandri.net/tag/jdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.melandri.net</link>
	<description>J2EE Developer &#38; Photography enthusiast</description>
	<lastBuildDate>Tue, 27 Jul 2010 19:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install Sun JDK on Linux</title>
		<link>http://www.melandri.net/2009/05/28/install-sun-jdk-on-linux/</link>
		<comments>http://www.melandri.net/2009/05/28/install-sun-jdk-on-linux/#comments</comments>
		<pubDate>Thu, 28 May 2009 07:19:13 +0000</pubDate>
		<dc:creator>amelandri</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=17</guid>
		<description><![CDATA[I&#8217;ve tested this procedure on Fedora 10 and Ubuntu 9.04 but It should work on other distributions too. First of all download the latest JDK package from the SUN page: be sure to download the bin file and not the rpm. From now on you&#8217;ll need to run commands using &#8221;sudo&#8221;. Move the package to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tested this procedure on Fedora 10 and Ubuntu 9.04 but It should work on other distributions too.</p>
<p>First of all download the latest JDK package from the <a href="http://java.sun.com/">SUN page</a>: be sure to download the bin file and not the rpm.</p>
<p>From now on you&#8217;ll need to run commands using &#8221;sudo&#8221;.</p>
<p>Move the package to /opt/ and make it executable.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>folder
<span style="color: #c20cb9; font-weight: bold;">mv</span> jdk-versionnumber-linux-i586.bin <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x jdk-versionnumber-linux-i586.bin</pre></div></div>

<p>Now start the installation and follow the onscreen instructions</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>jdk-versionnumber-linux-i586.bin</pre></div></div>

<p>When the installation is done you&#8217;ll need to set the JAVA_HOME enviroment variable and add java executable to the system pah.</p>
<p>Open the file /etc/profile and add the following lines</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">JAVA_HOME</span>=<span style="color: #ff0000;">&quot;/opt/jdk_versionnumber&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> JAVA_HOME
&nbsp;
<span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>jdk_versionnumber<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> PATH</pre></div></div>

<p>Now add a symbolic link for the java command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>jdk_versionnumber<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java</pre></div></div>

<p>Log off and log in back and you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.melandri.net/2009/05/28/install-sun-jdk-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
