mozilla-hosted-browser.conf and Gentoo Linux

14 views
Skip to first unread message

Mary-Anne Wolf

unread,
Nov 29, 2009, 6:12:50 PM11/29/09
to Google Web Toolkit
I am trying to get some existing GWT code to work
in hosted mode within Eclipse 3.4
on Gentoo Linux on i686 hardware.

I tried adding /usr/lib/mozilla-firefox into mozilla-hosted-
browser.conf
and I get the error
** Unable to find a usable Mozilla install **

I tried adding /usr/bin/konqueror
and got the same result.

So I found discussion from 2007 which says GWT refuses to work
on Linux with Firefox. Okay. I am flexible.

What browser should I use?
Where do I get it from?

It is possible that I need to set something
so that the mozilla-hosted-browser file
will be found. The code I am trying to make
work only has one copy of it, so I am guessing
I do not need to move the file.

I am finding discussions of doing GWT on 64 bit linux,
so I know SOMEBODY has gotten this to work.

Thanks.

Mary-Anne

Jeff Chimene

unread,
Dec 1, 2009, 11:47:53 AM12/1/09
to google-we...@googlegroups.com
A couple things:
  • You don't need to establish such an Eclipse -> browser link for GWT. Eclipse has a lot of web development framework you don't need for developing w/ GWT.
  • For versions of GWT < 2.0, you test your compiled code in any of the Linux browsers. This means deploying and serving the JavaScript in response to an HTTP request. That is a step that you ordinarily don't do while in the code->compile->debug loop. You don't need Eclipse Web development for this. Simply compile the code in GWT, deploy it to a web server, start your browser outside Eclipse, navigate to the URL.
  • You don't say which GWT version you're using. For anything < 2.0, GWT provides its own browser for Linux. It's a standalone version of FireFox packaged for embedded development in tools like GWT called "XULRunner".  Please note that this hosted mode browser is what you will use most when developing GWT code. GWT is designed to test your application before it's compiled; which means that you won't use a standalone browser while testing your application (for GWT < 2.0)
  • The upshot is that what you're trying to do probably isn't what you want


--

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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Jeff Chimene

unread,
Dec 1, 2009, 11:53:55 AM12/1/09
to google-we...@googlegroups.com
Please note the change in the 2nd bullet point. There is no GWT version dependency when running compiled code.

On Tue, Dec 1, 2009 at 9:47 AM, Jeff Chimene <jchi...@gmail.com> wrote:
A couple things:
    • You don't need to establish such an Eclipse -> browser link for GWT. Eclipse has a lot of web development framework you don't need for developing w/ GWT.
    • You test your compiled code in any of the Linux browsers. This means deploying and serving the JavaScript in response to an HTTP request. That is a step that you ordinarily don't do while in the code->compile->debug loop. You don't need Eclipse Web development for this. Simply compile the code in GWT, deploy it to a web server, start your browser outside Eclipse, navigate to the URL.

    Mary-Anne Wolf

    unread,
    Dec 5, 2009, 7:20:06 PM12/5/09
    to Google Web Toolkit
    I have been puzzling over your post for days.
    Thank-you, but I still do not understand.

    I am running GWT 1.5.3, which is <2.0 as you had guessed.

    I am trying to run it within Eclipse using a .launch file.
    I have an existing .launch file which is filled with Windows-specific
    pointers to libraries, I have created a second .launch file
    which copies the first and substitutes in Linux equivalents.
    It is this second file which I am trying to use on Gentoo Linux,
    and which seems to be referencing mozilla-hosted-browser.conf.

    When I open the .html file using a browser from within Eclipse,
    which I assume must be Xulrunner, without running .launch,
    I get a blank page, so I must assume that the .launch is
    setting up some essential things the plain HTML is not.

    This is what the .launch contains:

    <launchConfiguration
    type="org.eclipse.jdt.launching.localJavaApplication">
    <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
    <listEntry value="/SharedLib/lib/gwt-dev-linux.jar"/>
    </listAttribute>
    <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
    <listEntry value="1"/>
    </listAttribute>
    <booleanAttribute
    key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
    <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
    <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?
    >
    <runtimeClasspathEntry
    containerPath="org.eclipse.jdt.launching.JRE_CONTAINER"
    javaProject="FormDesigner" path="1" type="4"/>
    "/>
    <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?
    >
    <runtimeClasspathEntry internalArchive="/FormDesigner/src" path="3"
    type="2"/>
    "/>
    <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?
    >
    <runtimeClasspathEntry internalArchive="/SharedLib/lib/gwt-dev-
    linux.jar" path="3" type="2"/>
    "/>
    <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?
    >
    <runtimeClasspathEntry
    id="org.eclipse.jdt.launching.classpathentry.defaultClasspath">
    <memento exportedEntriesOnly="false" project="FormDesigner"/>
    </runtimeClasspathEntry>
    "/>
    <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?
    >
    <runtimeClasspathEntry internalArchive="/SharedLib/src" path="3"
    type="2"/>
    "/>
    </listAttribute>
    <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
    value="false"/>
    <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
    value="com.google.gwt.dev.GWTShell"/>
    <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
    value="-out www org.purc.purcforms.FormDesigner/FormDesigner.html"/>
    <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
    value="FormDesigner"/>
    <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-
    Xmx256M"/>
    </launchConfiguration>

    While I know that using GWTShell is no longer as common in later
    versions of GWT, I think it is still recommended in 1.5.3.

    Mary-Anne

    Jeff Chimene

    unread,
    Dec 5, 2009, 11:49:07 PM12/5/09
    to google-we...@googlegroups.com
    On Sat, Dec 5, 2009 at 5:20 PM, Mary-Anne Wolf <mgw...@comcast.net> wrote:
    I have been puzzling over your post for days.
    Thank-you, but I still do not understand.

    I am running GWT 1.5.3, which is <2.0 as you had guessed.

    I am trying to run it within Eclipse using a .launch file.
    I have an existing .launch file which is filled with Windows-specific
    pointers to libraries,  I have created a second .launch file
    which copies the first and substitutes in Linux equivalents.
    It is this second file which I am trying to use on Gentoo Linux,
    and which seems to be referencing mozilla-hosted-browser.conf.

    When I open the .html file using a browser from within Eclipse,
    Don't do this when using GWT on Linux. This might be OK on Windows GWT, I don't know. The hosted mode browser (FireFox) starts automaticatlly when you start hosted mode.
     
    which I assume must be Xulrunner, without running .launch,
    I get a blank page, so I must assume that the .launch is
    setting up some essential things the plain HTML is not.

     If you want to see how hosted mode debugging works on Linux, please try the StockWatcher tutorial. Considering your skill level, running that tutorial will be a no-brainer. 

    This is what the .launch contains:

    I don't see a reference to mozill-hosted-browser.conf. It may be that the reference is contained somewhere else in the 1.5 GWT development environment. I don't know.

    At this point, I'd really recommend getting the StockWatcher tutorial running in your Gentoo environment. That will give you a feeling of accomplishment and will provide a solid foundation to understand how to port your app to Linux from Windows.

    Reply all
    Reply to author
    Forward
    0 new messages