<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;feed=atom&amp;action=history</id>
		<title>RPi Java JDK Installation - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;action=history"/>
		<updated>2013-05-19T23:18:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223814&amp;oldid=prev</id>
		<title>HBrydon: /* Fix spelling on Raspbian, tweak URL text */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223814&amp;oldid=prev"/>
				<updated>2013-02-24T21:25:42Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Fix spelling on Raspbian, tweak URL text&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:25, 24 February 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This page shows how to install the Oracle Java SE JDK7 on the Raspberry Pi Debian Wheezy image.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This page shows how to install the Oracle Java SE JDK7 on the Raspberry Pi Debian Wheezy image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that the Java JDK can only be installed on soft-float images (such as Debian Wheezy).&amp;#160; This information is NOT usable on the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Raspian &lt;/del&gt;Wheezy image.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that the Java JDK can only be installed on soft-float images (such as Debian Wheezy).&amp;#160; This information is NOT usable on the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Raspbian &lt;/ins&gt;Wheezy image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Prerequisites=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Prerequisites=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Installing the software=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Installing the software=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Login to the computer, activate a web browser, and navigate to the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html | Oracle Java SE Downloads]] download page.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Login to the computer, activate a web browser, and navigate to the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html |Oracle Java SE Downloads]] download page.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[The Midori browser has had trouble interfacing to this page.&amp;#160; This page has been successfully handled using the [[RPi_IceWeasel| Iceweasel]] browser.]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[The Midori browser has had trouble interfacing to this page.&amp;#160; This page has been successfully handled using the [[RPi_IceWeasel |Iceweasel]] browser.]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Click on the JDK Download link.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Click on the JDK Download link.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Read and accept the Oracle Binary Code License Agreement for Java SE.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Read and accept the Oracle Binary Code License Agreement for Java SE.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should see the above definitions in JAVA_HOME and PATH environment variables.&amp;#160; If desired, do the same after a reboot.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should see the above definitions in JAVA_HOME and PATH environment variables.&amp;#160; If desired, do the same after a reboot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;A variation of this information with images can be found at [[http://www.savagehomeautomation.com/pi-jdk | Savage Home Automation ]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key elinux:diff:version:1.11a:oldid:223544:newid:223814 --&gt;
&lt;/table&gt;</summary>
		<author><name>HBrydon</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223544&amp;oldid=prev</id>
		<title>HBrydon: /* Tweak incorrect URLs */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223544&amp;oldid=prev"/>
				<updated>2013-02-24T06:27:36Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tweak incorrect URLs&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:27, 24 February 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Installing the software=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Installing the software=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Login to the computer, activate a web browser, and navigate to the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html| Oracle Java SE Downloads]] download page.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Login to the computer, activate a web browser, and navigate to the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html | Oracle Java SE Downloads]] download page.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[The Midori browser has had trouble interfacing to this page.&amp;#160; This &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;download &lt;/del&gt;page has been successfully &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;downloaded &lt;/del&gt;using the [[RPi_IceWeasel| Iceweasel]] browser.]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[The Midori browser has had trouble interfacing to this page.&amp;#160; This page has been successfully &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;handled &lt;/ins&gt;using the [[RPi_IceWeasel| Iceweasel]] browser.]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Click on the JDK Download link.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Click on the JDK Download link.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Read and accept the Oracle Binary Code License Agreement for Java SE.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Read and accept the Oracle Binary Code License Agreement for Java SE.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Some &lt;/del&gt;java programs &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;require that &lt;/del&gt;a JAVA_HOME environment variable &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;be defined &lt;/del&gt;and the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;java executable added &lt;/del&gt;to the system PATH.&amp;#160; Edit the file /etc/environment with an editor of your choice (eg. nano):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;To use all &lt;/ins&gt;java programs&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, you need to define &lt;/ins&gt;a JAVA_HOME environment variable and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;add &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;associated bin directory &lt;/ins&gt;to the system PATH.&amp;#160; Edit the file /etc/environment with an editor of your choice (eg. nano):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; sudo nano &amp;quot;/etc/environment&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; sudo nano &amp;quot;/etc/environment&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; export JAVA_HOME=&amp;quot;/opt/java/jdk1.7.0_10&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; export JAVA_HOME=&amp;quot;/opt/java/jdk1.7.0_10&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; export PATH=$PATH:$JAVA_HOME/bin &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; export PATH=$PATH:$JAVA_HOME/bin &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;This will need to be done for each username on the system.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Create a new command window to see the environment changes you have made in the above files.&amp;#160; Type the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Create a new command window to see the environment changes you have made in the above files.&amp;#160; Type the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 78:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should see the above definitions in JAVA_HOME and PATH environment variables.&amp;#160; If desired, do the same after a reboot.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should see the above definitions in JAVA_HOME and PATH environment variables.&amp;#160; If desired, do the same after a reboot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A variation of this information with images can be found at [[http://www.savagehomeautomation.com/pi-jdk| Savage Home Automation]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A variation of this information with images can be found at [[http://www.savagehomeautomation.com/pi-jdk | Savage Home Automation ]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HBrydon</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223538&amp;oldid=prev</id>
		<title>HBrydon: How To Install the Java JDK on the Raspberry Pi/Debian Wheezy image</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Java_JDK_Installation&amp;diff=223538&amp;oldid=prev"/>
				<updated>2013-02-24T06:19:06Z</updated>
		
		<summary type="html">&lt;p&gt;How To Install the Java JDK on the Raspberry Pi/Debian Wheezy image&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:RaspberryPi]]&lt;br /&gt;
Back to [[RPi Guides]].&lt;br /&gt;
&lt;br /&gt;
=='''Installing The Oracle Java SE7 JDK on a Raspberry Pi (Debian Wheezy)'''==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- This page uses information from:&lt;br /&gt;
  http://www.oracle.com/technetwork/java/javase/emb7u6-readme-1729894.html&lt;br /&gt;
  http://www.savagehomeautomation.com/pi-jdk&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=What does it do?=&lt;br /&gt;
&lt;br /&gt;
This page shows how to install the Oracle Java SE JDK7 on the Raspberry Pi Debian Wheezy image.&lt;br /&gt;
&lt;br /&gt;
Note that the Java JDK can only be installed on soft-float images (such as Debian Wheezy).  This information is NOT usable on the Raspian Wheezy image.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
&lt;br /&gt;
*A booted Raspberry Pi with keyboard, mouse, monitor&lt;br /&gt;
*A network connection (Ethernet or WiFi).&lt;br /&gt;
*Authorization to use root privileges.&lt;br /&gt;
&lt;br /&gt;
=Installing the software=&lt;br /&gt;
Login to the computer, activate a web browser, and navigate to the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html| Oracle Java SE Downloads]] download page.&lt;br /&gt;
[The Midori browser has had trouble interfacing to this page.  This download page has been successfully downloaded using the [[RPi_IceWeasel| Iceweasel]] browser.]&lt;br /&gt;
Click on the JDK Download link.&lt;br /&gt;
Read and accept the Oracle Binary Code License Agreement for Java SE.&lt;br /&gt;
Download the current file for &amp;quot;Linux ARM v6/v7 Soft Float ABI&amp;quot; and save in a location where you have write access.  Your home directory will be assumed for the following instructions.&lt;br /&gt;
&lt;br /&gt;
The following directions assume that you are installing version 7u10 of the JDK.  Adjust the filenames appropriately if you downloaded and are installing a different version.&lt;br /&gt;
&lt;br /&gt;
Activate a terminal window by either double click on either of the &amp;quot;LXTerminal&amp;quot; or &amp;quot;Root Terminal&amp;quot; icons or menu &amp;quot;Accessories -&amp;gt; LXTerminal&amp;quot; or &amp;quot;Accessories -&amp;gt; Root Terminal&amp;quot;.  Type the following commands in the terminal to create an installation directory and unpack the downloaded file:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /opt/java&lt;br /&gt;
 sudo chown root:root /opt/java&lt;br /&gt;
 cd /opt/java&lt;br /&gt;
 sudo tar xvzf ~/jdk-7u10-linux-arm-sfp.tar.gz&lt;br /&gt;
&lt;br /&gt;
This should create directory /opt/java/jdk1.7.0_10 (or similar, depending on the version you downloaded).&lt;br /&gt;
If the tar command completes correctly, the downloaded file in your home directory can be deleted:&lt;br /&gt;
&lt;br /&gt;
 rm ~/jdk-7u10-linux-arm-sfp.tar.gz&lt;br /&gt;
&lt;br /&gt;
The system needs to know that a JVM has been installed, where it can be found on the system, and which is the default version (if there is more than one choice available).  Type the following in the command window:&lt;br /&gt;
&lt;br /&gt;
 sudo update-alternatives --install &amp;quot;/usr/bin/java&amp;quot; &amp;quot;java&amp;quot; &amp;quot;/opt/java/jdk1.7.0_10/bin/java&amp;quot; 1&lt;br /&gt;
 sudo update-alternatives --set java /opt/java/jdk1.7.0_10/bin/java&lt;br /&gt;
&lt;br /&gt;
Java should now be successfully installed.  To test this, request the java version with:&lt;br /&gt;
&lt;br /&gt;
 java -version&lt;br /&gt;
&lt;br /&gt;
You should get a response showing the version that you just installed.&lt;br /&gt;
&lt;br /&gt;
 java version &amp;quot;1.7.0_10&amp;quot;&lt;br /&gt;
 Java(TM) SE Runtime Environment (build 1.7.0_10-b18)&lt;br /&gt;
 Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode)&lt;br /&gt;
&lt;br /&gt;
Some java programs require that a JAVA_HOME environment variable be defined and the java executable added to the system PATH.  Edit the file /etc/environment with an editor of your choice (eg. nano):&lt;br /&gt;
&lt;br /&gt;
 sudo nano &amp;quot;/etc/environment&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and add:&lt;br /&gt;
&lt;br /&gt;
 JAVA_HOME=&amp;quot;/opt/java/jdk1.7.0_10&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Similarly, add the following line in an appropriate place in your ~/.bashrc file:&lt;br /&gt;
&lt;br /&gt;
 export JAVA_HOME=&amp;quot;/opt/java/jdk1.7.0_10&amp;quot;&lt;br /&gt;
 export PATH=$PATH:$JAVA_HOME/bin &lt;br /&gt;
&lt;br /&gt;
Create a new command window to see the environment changes you have made in the above files.  Type the following:&lt;br /&gt;
&lt;br /&gt;
 export&lt;br /&gt;
&lt;br /&gt;
You should see the above definitions in JAVA_HOME and PATH environment variables.  If desired, do the same after a reboot.&lt;br /&gt;
&lt;br /&gt;
A variation of this information with images can be found at [[http://www.savagehomeautomation.com/pi-jdk| Savage Home Automation]]&lt;/div&gt;</summary>
		<author><name>HBrydon</name></author>	</entry>

	</feed>