Alex Rivera | Logout

The project XXX does not have any GWT SDKs on its build path

Asked 2011-12-16T21:54:19.887
24

Sometimes, when I start Eclipse (Java EE IDE for Web Developers, Indigo SR 1) on my MacOSX Lion, my GWT (2.4.0) project initially fails to compile.

Eclipse displays the following message in the "Problems" section:

The project XXX does not have any GWT SDKs on its build path

Here is a list of semi-solutions that sometimes work (I normally try them in this order):

  1. Project > Clean.
  2. Remove and re-add GWT SDK to the build path.
  3. Restart the machine.

Any help with preventing the problem from re-occurring would be most welcome.

Edit
Report

1 Answer

6

I tried the above, but had to do a bit more:

From above:

  • Remove GWT SDK from my project
  • Remove all GWT SDKs from eclipse
  • Download new GWT SDK (2.5.0)
  • Add it to eclipse and to my project

What I did extra:

  • Edit the .classpath file of my project
  • Move the classpathentry for GWT to just under 'src'
  • Save the .classpath file
  • Close the project
  • Open the project

And that did it for me. Moving it in the Build Path GUI did not seem to work for me!

So, the start of my .classpath ended up looking like this:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
    etc...
answered 2012-11-06T15:58:18.220

Your Answer