<?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>oyvindhauge.com &#187; Java</title>
	<atom:link href="http://www.oyvindhauge.com/blog/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oyvindhauge.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 21:28:35 +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>BankID and Java plug-in in Firefox on Ubuntu Part 5</title>
		<link>http://www.oyvindhauge.com/blog/2011/05/29/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-5/</link>
		<comments>http://www.oyvindhauge.com/blog/2011/05/29/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-5/#comments</comments>
		<pubDate>Sun, 29 May 2011 20:46:43 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BankID]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.oyvindhauge.com/blog/?p=1499</guid>
		<description><![CDATA[I have previously written about getting BankID to work on a Linux/Ubuntu computer. Even though BankID worked on a fresh install of Ubuntu 11.04 with OpenJDK, it seems to work best with Sun&#8217;s Java implementation. This post will guide you through installing Sun&#8217;s JRE and removing OpenJDK. First install Sun&#8217;s java implementation. I installed it [...]]]></description>
			<content:encoded><![CDATA[<p>I have previously written about <a title="BankID and Java plug-in in Firefox on Ubuntu Part 4" href="BankID and Java plug-in in Firefox on Ubuntu Part 4">getting BankID to work on a Linux/Ubuntu computer</a>. Even though BankID worked on a fresh install of Ubuntu 11.04 with OpenJDK, it seems to work best with Sun&#8217;s Java implementation. This post will guide you through installing Sun&#8217;s JRE and removing OpenJDK.</p>
<p>First install Sun&#8217;s java implementation. I installed it from the 10.04 repository (lucid) using the following commands (or Synaptic Package Manager):</p>
<p><code>sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"<br />
sudo apt-get update<br />
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</code></p>
<p>However, I am pretty sure using the 11.04 (natty) respository would work as well (Synaptic should already have an entry for partner software):</p>
<p><code>sudo add-apt-repository deb-src http://archive.canonical.com/ubuntu natty partner</code></p>
<p>Then remove all the packages concerning OpenJDK (my computers had six different packages). It is probably easier to find and remove the packages by using Synaptic.</p>
<p>Finally, select the java version to use by typing in the following command (pick the one saying &#8220;sun jre&#8221; and &#8220;auto&#8221;):</p>
<p><code>sudo update-alternatives --config java</code></p>
<p>I have tested the above on two different computers and it is working. If you have problems, leave me a comment and I&#8217;ll see if I can help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2011/05/29/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Vuze would not run after install of Ubuntu 10.04</title>
		<link>http://www.oyvindhauge.com/blog/2010/07/24/vuze-would-not-run-after-install-of-ubuntu-10-04/</link>
		<comments>http://www.oyvindhauge.com/blog/2010/07/24/vuze-would-not-run-after-install-of-ubuntu-10-04/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 14:39:34 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vuze]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=1336</guid>
		<description><![CDATA[After installing Ubuntu 10.04, Vuze would not start. Reinstalling the libswt-gtl/3.5/java package may solve this problem (thanks to the tips in this issue at launchpad.net). Reinstalling this package may be done by opening a console window and typing: &#8220;sudo apt-get install &#8211;reinstall libswt-gtk-3.5-java&#8220;]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://oyvindhauge.com/blog/wp-content/vuze.png"><img class="aligncenter size-medium wp-image-1352" title="Vuze error message" src="http://oyvindhauge.com/blog/wp-content/vuze-300x227.png" alt="Vuze error message" width="300" height="227" /></a></p>
<p>After installing Ubuntu 10.04, Vuze would not start. Reinstalling the libswt-gtl/3.5/java package may solve this problem (thanks to the tips in <a href="https://bugs.launchpad.net/ubuntu/+source/swt-gtk/+bug/569461">this issue</a> at <a href="https://launchpad.net/">launchpad.net</a>). Reinstalling this package may be done by opening a console window and typing: &#8220;<em>sudo apt-get install &#8211;reinstall libswt-gtk-3.5-java</em>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2010/07/24/vuze-would-not-run-after-install-of-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BankID and Java plug-in in Firefox on Ubuntu Part 4</title>
		<link>http://www.oyvindhauge.com/blog/2010/06/20/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-4/</link>
		<comments>http://www.oyvindhauge.com/blog/2010/06/20/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-4/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 17:51:21 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BankID]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=1328</guid>
		<description><![CDATA[I have earlier tried to explain how to get around the Java related issues with BankID and Firefox on Ubuntu (1, 2, and 3). However, it seems that every new Ubuntu release introduce a change or two that forces us to fix something. BankID seems to require Sun&#8216;s JRE. However, this JRE is not part [...]]]></description>
			<content:encoded><![CDATA[<p>I have earlier tried to explain how to get around the Java related issues with BankID and Firefox on Ubuntu (<a href="http://oyvindhauge.com/blog/2009/01/08/bankid-and-java-plug-in-in-firefox-on-ubuntu/">1</a>, <a href="http://oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/">2</a>, and <a href="http://oyvindhauge.com/blog/2009/11/02/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-3/">3</a>). However, it seems that every new Ubuntu release introduce a change or two that forces us to fix something. BankID seems to require <strong>Sun</strong>&#8216;s <a href="http://en.wikipedia.org/wiki/JRE#Execution_environment">JRE</a>. However, this JRE is not part of the standard repository (OpenJDK is). Below I&#8217;ll provide a short step-by-step guide to fix the problem in Ubuntu 10.04.</p>
<p>First, add a repository that contains Sun&#8217;s JRE. You may go to the Synaptic Package Manager and select &#8220;Settings-&gt;Repositories-&gt;Other software-&gt;Add&#8221; and paste the following: <em>deb http://archive.canonical.com/ lucid partner</em>, or type the following command into your console window:  <em>sudo add-apt-repository &#8220;deb http://archive.canonical.com/ lucid partner&#8221;.</em></p>
<p>Second, you should now be able to install sun-java6-jre, sun-java6-fonts and sun-java6-plugin through either Synaptic or <em>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</em>.</p>
<p>Third, make sure that you remove the openjdk. In Synaptic remove openjdk-6-jre-lib and openjdk-6-jre.</p>
<p>Finally, set the sun-java6-jre to be your active jre by typing the following in your console: <em>sudo update-alternatives &#8211;config java. </em>Then select the right jre (<em>/usr/lib/jvm/java-6-sun/jre/bin/java</em>). It should most likely be &#8220;0&#8243;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2010/06/20/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>BankID and Java plug-in in Firefox on Ubuntu Part 3</title>
		<link>http://www.oyvindhauge.com/blog/2009/11/02/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-3/</link>
		<comments>http://www.oyvindhauge.com/blog/2009/11/02/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-3/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:57:11 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BankID]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=1243</guid>
		<description><![CDATA[I recently updated to Ubuntu 9.10. The new Ubuntu version comes with a lot of new packages, including a new version of Java (6.16). Unfortunately, the newest Java plugin from Sun for Thunderbird depends on version 6.15. As a consequence, you&#8217;ll get an error message like the one below if you try to install the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently updated to Ubuntu 9.10. The new Ubuntu version comes with a lot of new packages, including a new version of Java (6.16). Unfortunately, the newest Java plugin from Sun for Thunderbird depends on version 6.15. As a consequence, you&#8217;ll get an error message like the one below if you try to install the Java plugin. In this case when you try to open your BankID (which is a Java application). I have had a few problems with BankID on Ubuntu <a href="http://oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/">before</a> as well.</p>
<p>Error message:<br />
<code>The following packages have unmet dependencies:<br />
sun-java6-plugin: Depends: sun-java6-bin (= 6-15-1) but 6-16-0ubuntu1.9.04 is to be installed<br />
E: Broken packages<br />
</code></p>
<p>To fix it, I removed the java implementation through the following commands (thanks to <a href="http://ubuntuforums.org/showthread.php?t=1305603">FrostCake</a>):<br />
<code>sudo apt-get remove sun-java6-jre sun-java6-plugin sun-java6-bin sun-java6-fonts<br />
sudo apt-get autoremove</code></p>
<p>Then I reinstalled the sun-java6-plugin through the Synaptic Manager. This will also install all packages which the Java plugin depends on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2009/11/02/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vuze on Ubuntu after removing openjdk</title>
		<link>http://www.oyvindhauge.com/blog/2009/05/12/vuze-on-ubuntu-after-removing-openjdk/</link>
		<comments>http://www.oyvindhauge.com/blog/2009/05/12/vuze-on-ubuntu-after-removing-openjdk/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:24:12 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[openjdk]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vuze]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=928</guid>
		<description><![CDATA[I recently removed openjdk to get my BankID working. A change often has consequences and I did not have to wait long. For some reason I do not bother to dive into, openjdk is hard coded into Vuze as its preferred Java implementation on Ubuntu. When I removed openjdk, Vuze would of course not start. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently <a href="http://oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/">removed openjdk to get my BankID</a> working. A change often has consequences and I did not have to wait long.</p>
<p>For some reason I do not bother to dive into, <a href="http://openjdk.java.net/">openjdk</a> is <a href="http://en.wikipedia.org/wiki/Hard_coding">hard coded</a> into <a href="http://www.vuze.com/app">Vuze</a> as its preferred Java implementation on Ubuntu. When I removed openjdk, Vuze would of course not start. It is apparently a <a href="https://bugs.launchpad.net/ubuntu/+source/azureus/+bug/348109">bug</a> (or meta bug) but it is quite simple to <a href="http://ubuntuforums.org/showthread.php?p=7250642">fix</a>.</p>
<p>Change one line in <em>/usr/bin/azureus</em> by using &#8220;sudo gedit /usr/bin/azureus&#8221; and change the line <strong>JAVA=&#8217;/usr/lib/jvm/java-6-openjdk/jre/bin/java -Xmx1024M&#8217;</strong> to <strong>JAVA=&#8217;/etc/alternatives/java -Xmx1024M&#8217;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2009/05/12/vuze-on-ubuntu-after-removing-openjdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BankID and Java plug-in in Firefox on Ubuntu Part 2</title>
		<link>http://www.oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/</link>
		<comments>http://www.oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:11:25 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BankID]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IcedTea]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[openjdk]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=922</guid>
		<description><![CDATA[I previously wrote about how to get the Java-plugin working in Firefox on Ubuntu 8.* on an Intel 32 bit system. After upgrading to Ubuntu 9.04 on an AMD64 system I had the same problem. Instead of a working Java applet I just got a grey box. I had already installed Sun&#8217;s Java implementation and [...]]]></description>
			<content:encoded><![CDATA[<p>I previously wrote about how to get the <a href="http://oyvindhauge.com/blog/2009/01/08/bankid-and-java-plug-in-in-firefox-on-ubuntu/">Java-plugin working in Firefox on Ubuntu 8.*</a> on an Intel 32 bit system. After upgrading to Ubuntu 9.04 on an AMD64 system I had the same problem. Instead of a working Java applet I just got a grey box. I had already installed Sun&#8217;s Java implementation and tested the previously suggested solution. This was apparently not enough.</p>
<p>The solution was however quite simple. Some users in the <a href="http://ubuntuforums.org/archive/index.php/t-595398.html">Ubuntu forums</a> suggeste removing IcedTea and OpenJDK and so I did. I used the Synaptic package manager but you may also remove it using apt-get: <em>sudo apt-get remove gcj libgcj-common libgcj7-0 icedtea-gcjwebplugin openjdk-6-jdk openjdk-6-jre opendjdk-6-jre-headless libaccess-bridge-java tzdata-java </em>(I have not tested this myself). After removing the open Java implementation you simply restart your browser and that should be it.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2009/05/11/bankid-and-java-plug-in-in-firefox-on-ubuntu-part-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>BankID and Java plug-in in Firefox on Ubuntu</title>
		<link>http://www.oyvindhauge.com/blog/2009/01/08/bankid-and-java-plug-in-in-firefox-on-ubuntu/</link>
		<comments>http://www.oyvindhauge.com/blog/2009/01/08/bankid-and-java-plug-in-in-firefox-on-ubuntu/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 07:35:21 +0000</pubDate>
		<dc:creator>Øyvind Hauge</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BankID]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://oyvindhauge.com/blog/?p=512</guid>
		<description><![CDATA[If you have problems running BankID (Norwegian Internet bank authentication) in Firefox on Ubuntu I might have the solution. I did at least have some problems starting BankID or more correctly starting Java in Firefox on Ubuntu. I had already installed Sun&#8217;s Java implementation following the instructions I wrote about earlier. Then I had to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problems running <a href="http://www.bankid.no/">BankID</a> (Norwegian Internet bank authentication) in Firefox on Ubuntu I might have the solution. I did at least have some problems starting BankID or more correctly starting Java in Firefox on Ubuntu.</p>
<p>I had already installed Sun&#8217;s Java implementation following the instructions I wrote about <a href="http://oyvindhauge.com/blog/2008/12/13/building-a-linux-pc-for-my-parents/">earlier</a>. Then I had to use this trick which I found thanks to <a href="http://blog.eirikhoem.net/index.php/2008/04/30/firefox-java-problem-with-ubuntu-804-solved/">Eirik Hoem</a>.</p>
<p>First, go the the plugins folder where you have installed Firefox (using a text shell/command prompt).<em></em></p>
<p><em>cd /usr/lib/firefox-3.0/plugins$</em></p>
<p>Next, create a <a href="http://en.wikipedia.org/wiki/Symlink">symlink</a> to where you have installed the Java plugin.<em></em></p>
<p><em>sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so</em></p>
<p>Finally, restart your browser and the problem should be solved.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oyvindhauge.com/blog/2009/01/08/bankid-and-java-plug-in-in-firefox-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

