Think of hosted mode as pretty much dead - no one is going to change
behaviour.  You may have some luck with the LD_LIBRARY_PATH variable or try
copying the library to /usr/lib32.

On Tue, Apr 7, 2009 at 12:44 PM, tony.p.. <tony.t....@gmail.com> wrote:

>
> Hey Vitali,
>
> Copying the lib jar files is what caused this problem, when I pointed
> to where the original lib files are, inside GWT, that fixed the hosted
> mode issue. I don't know why I didn't get this error when I was using
> 1.5.3.
>
> I have a question to the GWT creators: why is the hosted mode browser
> tied to the library files (gwt-dev & gwt-user) directory, they should
> be independent, because that's limiting  you from moving the library
> files to fit your project structure. Or is it possible to add a
> definition for the hosted mode browser, if you want to move the lib
> files into your project?
>
> On Apr 6, 10:08 pm, Vitali Lovich <vlov...@gmail.com> wrote:
> > That's the hosted mode trying to launch your browser.  That particular
> > problem is caused by 1 of 2 issues (at least from my experience);
> >
> > 1.  You are using a 64-bit JVM (which you aren't so this doesn't apply to
> > you)
> > 2.  You either moved, or don't have, the full GWT installation & simply
> > added gwt-dev-linux.jar to your project.
> >
> > When launching, GWT launches the hosted browser that is in the same
> > directory as gwt-dev-{platform}.jar.  If you copied the jar into your
> > project without also copying in the browser (or the library is missing),
> you
> > will see this error.
> >
> > On Mon, Apr 6, 2009 at 10:01 PM, tony.p.. <tony.t....@gmail.com> wrote:
> >
> > > Hello,
> >
> > > I just upgraded to 1.6 RC2, and converted my project to it. If I run
> > > hosted mode with ant hosted, it works, but when I run it from eclipse,
> > > I get this error:
> >
> > > Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
> > > library: /home/tt/ej/lib/libswt-pi-gtk-3235.so
> > >        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1677)
> > >        at java.lang.Runtime.load0(Runtime.java:770)
> > >        at java.lang.System.load(System.java:1005)
> > >        at
> org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
> > >        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
> > >        at
> org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
> > >        at
> org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
> > >        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
> > >        at com.google.gwt.dev.SwtHostedModeBase.<clinit>
> > > (SwtHostedModeBase.java:82)
> > > Could not find the main class: com.google.gwt.dev.HostedMode.  Program
> > > will exit.
> >
> > > I did not reference "/home/tt/ej/lib" anywhere in my project, neither
> > > could I find any reference to it anywhere in my project, not sure
> > > where it was added. I'm using jdk 1.6u13 and eclipse 3.4, all 32 bit,
> > > but on ubuntu 8.04 64 bit.
> > > If I run another gwt app from eclipse, such as the Hello sample, it
> > > runs fine!
> >
> > > If anyone knows what's causing this, please help.
> >
> > > Thank you very much.
> > > Tony
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to