I'm trying to run GWT-apps on a Linux GTK environment. I use the
latest GWT-version (1.33), the latest Java 6 build and eclipse 3.2 on
a Ubuntu Linux (6.10).
GWT is "installed" into "/opt/gwt".
If I create an application and call my Main-shell, I recieve the
following stack-trace:
[ERROR] The browser widget class could not be instantiated
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path
(MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:138)
at com.google.gwt.dev.shell.BrowserWidget.<init>(BrowserWidget.java:
236)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java:
72)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget(PlatformSpecific.java:
53)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
485)
at com.google.gwt.dev.GWTShell.launchStartupUrls(GWTShell.java:446)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:525)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:303)
And the following error:
[ERROR] Unable to open new window for startup URL: http://localhost:8888/Main/Main.html
The development shell opens of course, but the hosted browser denies
to appear.
Very strange, so I tried to run this under Eclipse. The hosted browser
appers, but any Java-code would be executed (see screenshot:
http://home.datacomm.ch/paedubucher/div/gwt.png). The button from the
hello world sample doesn't appear. If i copy the URL http://localhost:8888/Main/Main.html
into firefox, the whole thing works and the button appears!
Has anybody an idea what the problem could be?
Thank you!
PS: Sorry for my english ;-)
Hello
I'm trying to run GWT-apps on a Linux GTK environment. I use the
latest GWT-version ( 1.33), the latest Java 6 build and eclipse 3.2 on
a Ubuntu Linux (6.10).
GWT is "installed" into "/opt/gwt".
If I create an application and call my Main-shell, I recieve the
following stack-trace:
[ERROR] The browser widget class could not be instantiated
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path
(MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:138)
at com.google.gwt.dev.shell.BrowserWidget.<init>(BrowserWidget.java:
236)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz .<init>(BrowserWidgetMoz.java:
export MOZILLA_FIVE_HOME='/opt/gwt/mozilla-1.7.12/'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH':'$MOZILLA_FIVE_HOME
But I can't still start this out of eclipse.
Do you have an idea for that issue?
Thanks!
On 6 Apr., 16:00, "Dan Morrill" <morri...@google.com> wrote:
> Hello!
>
> This is the result of a system configuration problem. There are several
> possible causes.
>
> If you search this Group's archives for "no more handles" you'll find
> several threads that discuss this problem and possible fixes.
>
> Hope that helps!
>
> - Dan Morrill
>
> On 4/6/07, paedubucher <paedubuc...@gmail.com> wrote:
>
>
>
> > Hello
>
> > I'm trying to run GWT-apps on a Linux GTK environment. I use the
> > latest GWT-version (1.33), the latest Java 6 build and eclipse 3.2 on
> > a Ubuntu Linux (6.10).
> > GWT is "installed" into "/opt/gwt".
>
> > If I create an application and call my Main-shell, I recieve the
> > following stack-trace:
>
> > [ERROR] The browser widget class could not be instantiated
> > org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path
> > (MOZILLA_FIVE_HOME not set)]
> > at org.eclipse.swt.SWT.error(SWT.java:3400)
> > at org.eclipse.swt.browser.Browser.<init>(Browser.java:138)
> > at com.google.gwt.dev.shell.BrowserWidget.<init>(
> > BrowserWidget.java:
> > 236)
> > at
> > com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java
> > :
> > 72)
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
export MOZILLA_FIVE_HOME='/opt/gwt/mozilla-1.7.12/'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH':'$MOZILLA_FIVE_HOME
But I can't still start this out of eclipse.
Do you have an idea for that issue?
Thanks!
On 6 Apr., 16:00, "Dan Morrill" <morri...@google.com> wrote:
> Hello!
>
> This is the result of a system configuration problem. There are several
> possible causes.
>
> If you search this Group's archives for "no more handles" you'll find
> several threads that discuss this problem and possible fixes.
>
> Hope that helps!
>
> - Dan Morrill
>
> On 4/6/07, paedubucher <paedubuc...@gmail.com> wrote:
>
>
>
> > Hello
>
> > I'm trying to run GWT-apps on a Linux GTK environment. I use the
> > latest GWT-version (1.33), the latest Java 6 build and eclipse 3.2 on
> > a Ubuntu Linux (6.10).
> > GWT is "installed" into "/opt/gwt".
>
> > If I create an application and call my Main-shell, I recieve the
> > following stack-trace:
>
> > [ERROR] The browser widget class could not be instantiated
> > org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path
> > (MOZILLA_FIVE_HOME not set)]
> > at org.eclipse.swt.SWT.error(SWT.java:3400)
> > at org.eclipse.swt.browser.Browser.<init>(Browser.java:138)
> > at com.google.gwt.dev.shell.BrowserWidget.<init>(
> > BrowserWidget.java:
> > 236)
> > at
> > com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java
> > :
> > 72)
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:
Yes, i did that! Actually, I restartet the whole system again (may be
a habit from Windows :-D).
But in Eclipse, the issue seems to be a different one, because the
hosted browser starts without any problems (even before my .bashrc-
hack) but the Java-code won't be executed (the button doesn't appear,
see my screenshot: http://home.datacomm.ch/paedubucher/div/gwt.png).
I recieve this warning in my eclipse-console:
06.04.2007 19:01:23 java.util.prefs.FileSystemPreferences$7 run
WARNUNG: Prefs file removed in background /home/
paedubucher/.java/.userPrefs/com/google/gwt/dev/shell/prefs.xml
Do I have to add some parameters to the run configuration?
On 6 Apr., 18:20, "Dan Morrill" <morri...@google.com> wrote:
> Hello!
>
> Starting it from Eclipse may not set those environment variables. It may
> help to set them before running Eclipse itself. This usually happens if you
> log out completely and log back in, and then restart Eclipse.
>
> Have you tried that yet?
>
> - Dan
>
> > > > at com.google.gwt.dev.GWTShell.launchStartupUrls(GWTShell.java