<?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>Doug Diego &#187; Java</title>
	<atom:link href="http://dougdiego.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougdiego.com</link>
	<description></description>
	<lastBuildDate>Sat, 10 Apr 2010 14:16:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install SUN JDK on Fedora 10</title>
		<link>http://dougdiego.com/2008/12/04/install-sun-jdk-on-fedora-10/</link>
		<comments>http://dougdiego.com/2008/12/04/install-sun-jdk-on-fedora-10/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 16:49:42 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://dougdiego.com/?p=147</guid>
		<description><![CDATA[Installing the SUN JDK on Fedora is pretty simple.   Here are some steps you can follow:
1. Go to: http://java.sun.com/javase/downloads/index.jsp
2. Click the download button next to: &#8220;Java SE Development Kit (JDK) 6 Update 11&#8243; or which ever version you want.

3. On the next page, select Platform: &#8220;Linux&#8221; and Language: &#8220;Multi-language&#8221;.  Click on Continue.

4. Then [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the SUN JDK on Fedora is pretty simple.   Here are some steps you can follow:</p>
<p>1. Go to: <a href="http://java.sun.com/javase/downloads/index.jsp">http://java.sun.com/javase/downloads/index.jsp</a></p>
<p>2. Click the download button next to: &#8220;Java SE Development Kit (JDK) 6 Update 11&#8243; or which ever version you want.</p>
<p><a href="http://dougdiego.com/wp-content/uploads/2008/12/install_sun_jdk_step1.png"><img class="alignnone size-medium wp-image-151" title="install_sun_jdk_step1" src="http://dougdiego.com/wp-content/uploads/2008/12/install_sun_jdk_step1-300x70.png" alt="" width="300" height="70" /></a></p>
<p>3. On the next page, select Platform: &#8220;Linux&#8221; and Language: &#8220;Multi-language&#8221;.  Click on Continue.</p>
<p><a href="http://dougdiego.com/wp-content/uploads/2008/12/install_sun_jdk_step2.png"><img class="alignnone size-medium wp-image-152" title="install_sun_jdk_step2" src="http://dougdiego.com/wp-content/uploads/2008/12/install_sun_jdk_step2-300x143.png" alt="" width="300" height="143" /></a></p>
<p>4. Then click on the file to download: jdk-6u11-linux-i586.bin  This will download the file to your computer.</p>
<p>5.  Next we need to make the file executable:<br />
     <code>chmod a+x jdk-6u11-linux-i586.bin</code></p>
<p>6. Then run the installer:<br />
     <code>./ jdk-6u11-linux-i586.bin</code></p>
<p>You&#8217;ll need to read the Terms &amp; Conditions and accept them.</p>
<p>At this point you can use it as it or set it up more.  Here is what I did.</p>
<p>7.  As root I moved it to /usr/local<br />
     <code>sudo mv  jdk1.6.0_11 /usr/local</code></p>
<p>8. Then I updated my .bashrc to add it to my path:<br />
     <code>vi ~/.bashrc</code></p>
<p>Add the following:<br />
<code>export JAVA_HOME=/usr/local/jdk1.6.0_11<br />
export PATH=$PATH:$JAVA_HOME/bin</code></p>
<p>9.  Now to use java either source the .bashrc like:<br />
     <code>source ~/.bashrc</code></p>
<p>Or open a new terminal window.</p>
<p><strong>Note 1:</strong> Note, these steps should work on most linux distros.</p>
<p><strong>Note 2:</strong> If you already have OpenJDK installed, you can remove it with:<br />
     <code># yum remove java-1.6.0-openjdk java-1.6.0-openjdk-plugin</code></p>
<p><strong>Note 3:</strong> If you are missing some dependancies, you can add them like:<br />
     <code># yum install compat-libstdc++-33 compat-libstdc++-296</code></p>
<p><strong>Adding javac to your Path</strong><br />
To make javac available to any individual user, just add the following to each user’s path:</p>
<p><code>export JAVA_HOME=/usr/local/jdk1.6.0_11<br />
export PATH=$PATH:$JAVA_HOME/bin</code></p>
<p>For example, if you have a user called doug, you’d open:<br />
<code>/home/doug/.bashrc<br />
</code><br />
And add the 2 export command. (This assume you are using bash and the /home/doug is your home directory)</p>
<p>If you want to make is available to all users, as root edit the file:<br />
<code>/etc/profile<br />
</code></p>
<p>And again add:<br />
<code>export JAVA_HOME=/usr/local/jdk1.6.0_11<br />
export PATH=$PATH:$JAVA_HOME/bin</code></p>
<p>If your shell is tcsh, you can add it here:<br />
<code>/etc/csh.cshrc</code></p>
<p><strong>Firefox Plugin</strong><br />
You need to manuallly install the plugin. I followed the instructions in this thread: <a href="http://www.e-graviton.com/ird/node/195">http://www.e-graviton.com/ird/node/195</a></p>
<p>On my Linux box, the plugins directory does not exist. So I have to create a new one first. Here are the steps:</p>
<p>1. Make a symbolic link:<br />
<code>$ mkdir plugins<br />
$ pwd<br />
/home/doug/.mozilla/plugins<br />
$ ln -s /usr/local/jdk1.6.0_11/jre/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so<br />
$ ls<br />
libjavaplugin_oji.so<br />
$</code></p>
<p>2. Then I added the following lines to my .bash_profile<br />
<code>MOZ_PLUGIN_PATH=$HOME/.mozilla/plugins<br />
export MOZ_PLUGIN_PATH</code></p>
<p>3. Log off and log on again, start the firefox, and I can run the java applet on linux!</p>
]]></content:encoded>
			<wfw:commentRss>http://dougdiego.com/2008/12/04/install-sun-jdk-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
