Documentation and Books

Recent site activity

How to get the very latest build of GWT?

To do this we have to follow a few steps. I based this article on the explanation given at the Google WebToolkit site (here), although that was based on using a command line tool i normally prefer to do it with Eclipse. So we will use Eclipse to retrieve the sources and create the binary files. The version of GWT that i am building at the time of writing this piece is a trunk version of 1.4.60 -> 1.50.

  • Download the Subclipse plugin for Eclipse if you don't have this already. (download for Eclipse 3.x)
  • Extract the downloaded zip file into your eclipse folder.
  • Restart Eclipse.
  • Now choose File->Import and select Checkout Projects from SVN in the Other folder.
  • Press Next.
  • Choose the Create a new repository location radio button.
  • Press Next.
  • Enter the following URL in the Url field: http://google-web-toolkit.googlecode.com/svn/
  • Press Next.
  • If you now start to get errors then it might be the case that you are behind a proxy, to change the proxy settings open the file c:\Documents and Settings\username\Application Data\Subversion\servers where servers is the file to change. In the bottom of the file there is a [global] section where you can enter proxy information. You might need to restart Eclipse and start from the top of this explanation again.
  • Now you should see something like the following:

  • Select the option Check out as a project in the workspace and give it the name GoogleWebToolkitTools.
  • Press Finish.
  • Now Eclipse will start downloading the tools folder to your project, this could take a while (+/- 138MB).
  • Now we have done part one, so let us continue to part two:

    • Choose File->Import and select Checkout Projects from SVN in the Other folder.
    • Press Next.
    • Choose the Use existing repository location radio button and choose the URL: http://google-web-toolkit.googlecode.com/svn/
    • Press Next.
    • Select the trunk folder. (this folder contains the latest GWT sources)
    • Press Next.
    • Select the option Check out as a project in the workspace and give it the name GoogleWebToolkitSrc.
    • Press Finish.
    • Now Eclipse will start downloading the trunk folder to your project, this could take a while (+/- 47,8MB).

    So this was part two, so lets continue to part three:

    • In the GoogleWebToolkitSrc project select the build.xml file.
    • Choose Run->External Tools->Run As->Ant Build... (mind the dot's we want to do a bit of configuration first).
    • Click on the Environment tab.
    • Click on the New... button.
    • In the name fields enter GWT_TOOLS.
    • In the value field enter ${workspace_loc}\GoogleWebToolkitTools.
    • Click on OK.
    • Click on Apply.
    • Click on Run.

    In the console you should now see that ant is running the build script. If there are any errors then i'm unable to help with this, you could try to post them to the GWT Contributors forum to see if you can get some help there. When i am writing this i only got the following problems:

    Browser.java
    Line 1340: class LONG ambiguously defined.
    Line 620: class LONG ambiguously defined.

    The sollotion for me was to add the package org.eclipse.swt.internal.gtk in front of the LONG class to specify which package to use. After changing this i did the build again and then i had no more problems. The build itself can take some time to finish.