<?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>Techie Thoughts &#187; How To</title>
	<atom:link href="http://blog.techieant.com/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.techieant.com</link>
	<description>Open Source, software, hardware, mobile tips and reviews.</description>
	<lastBuildDate>Mon, 12 Oct 2009 09:12:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making GWT Hosted Browser work in Eclipse on Ubuntu</title>
		<link>http://blog.techieant.com/2009/07/10/making-gwt-hosted-browser-work-in-eclipse-on-ubuntu/</link>
		<comments>http://blog.techieant.com/2009/07/10/making-gwt-hosted-browser-work-in-eclipse-on-ubuntu/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 07:49:29 +0000</pubDate>
		<dc:creator>Vijayakumar K</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.techieant.com/?p=18</guid>
		<description><![CDATA[For sometime now, we&#8217;ve been having an issue with GWT Hosted browser not starting from Eclipse and Ubuntu / Kubuntu. 
The error that comes up is

1
2
3
4
5
6
7
8
9
10
11
12
13
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /opt/local/eclipse-3.4-SR2-jee/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load&#40;Native Method&#41;
    [...]]]></description>
			<content:encoded><![CDATA[<p>For sometime now, we&#8217;ve been having an issue with GWT Hosted browser not starting from Eclipse and Ubuntu / Kubuntu. </p>
<p>The error that comes up is</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">**</span> Unable to load Mozilla <span style="color: #000000; font-weight: bold;">for</span> hosted mode <span style="color: #339933;">**</span>
java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">UnsatisfiedLinkError</span><span style="color: #339933;">:</span> <span style="color: #339933;">/</span>opt<span style="color: #339933;">/</span>local<span style="color: #339933;">/</span>eclipse<span style="color: #339933;">-</span><span style="color: #cc66cc;">3.4</span><span style="color: #339933;">-</span>SR2<span style="color: #339933;">-</span>jee<span style="color: #339933;">/</span>plugins<span style="color: #339933;">/</span>com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">eclipse</span>.<span style="color: #006633;">sdkbundle</span>.<span style="color: #006633;">linux_1</span>.6.4.<span style="color: #006633;">v200904062334</span><span style="color: #339933;">/</span>gwt<span style="color: #339933;">-</span>linux<span style="color: #339933;">-</span>1.6.4<span style="color: #339933;">/</span>mozilla<span style="color: #339933;">-</span>1.7.12<span style="color: #339933;">/</span>libxpcom.<span style="color: #006633;">so</span><span style="color: #339933;">:</span> libstdc<span style="color: #339933;">++</span>.<span style="color: #006633;">so</span>.5<span style="color: #339933;">:</span> cannot open shared object file<span style="color: #339933;">:</span> No such file or directory
    at java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">ClassLoader</span>$NativeLibrary.<span style="color: #006633;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">Native</span> <span style="color: #003399;">Method</span><span style="color: #009900;">&#41;</span>
    at java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">loadLibrary0</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1767</span><span style="color: #009900;">&#41;</span>
    at java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">loadLibrary</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1663</span><span style="color: #009900;">&#41;</span>
    at java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">Runtime</span>.<span style="color: #006633;">load0</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Runtime</span>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">787</span><span style="color: #009900;">&#41;</span>
    at java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">System</span>.<span style="color: #006633;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">System</span>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1022</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">shell</span>.<span style="color: #006633;">moz</span>.<span style="color: #006633;">MozillaInstall</span>.<span style="color: #006633;">load</span><span style="color: #009900;">&#40;</span>MozillaInstall.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">190</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">BootStrapPlatform</span>.<span style="color: #006633;">initHostedMode</span><span style="color: #009900;">&#40;</span>BootStrapPlatform.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">53</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">HostedModeBase</span>.<span style="color: #339933;">&lt;</span>init<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>HostedModeBase.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">362</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">SwtHostedModeBase</span>.<span style="color: #339933;">&lt;</span>init<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>SwtHostedModeBase.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">98</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">HostedMode</span>.<span style="color: #339933;">&lt;</span>init<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>HostedMode.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">271</span><span style="color: #009900;">&#41;</span>
    at com.<span style="color: #006633;">google</span>.<span style="color: #006633;">gwt</span>.<span style="color: #006633;">dev</span>.<span style="color: #006633;">HostedMode</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#40;</span>HostedMode.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">230</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>It could be resolved by installing libstdc++5 library in Ubuntu. Ubuntu only has libstdc++6 installed by default.<br />
You can install the dependency by installing libstdc++5 package from your package manager (KPackagekit or Adept or Synaptic ) or by running the following command in a console</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libstdc++<span style="color: #000000;">5</span></pre></div></div>

<p>Once the installation is complete, you should be able to launch the GWT Hosted mode browser just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.techieant.com/2009/07/10/making-gwt-hosted-browser-work-in-eclipse-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
