Saturday, March 27, 2010

The project 'XXX' does not have any GWT SDK's on its build path

I'm currently working on a GWT project using the Eclipse IDE, GWT plugin and maven2.

I have been getting an error stating - The project 'XXX' does not have any GWT SDK's on its build path.

I do have the GWT libs declared in my maven pom.xml file, however the GWT plugin also requires the GWT SDK library to be added to the project, which I had done. However, what is not clear is that the GWT SDK library must appear before the Maven dependencies in the "Order and Export" tab. Once I moved it up the order this error was resolved.

Hope this is of some use!

36 comments:

  1. OMG - this error has been really annoying. Thanks for posting this!

    ReplyDelete
  2. thank you. works for me as well

    ReplyDelete
  3. thank you man.... you saved my day :D

    ReplyDelete
  4. Dito! This has been bothering me so so so much!

    ReplyDelete
  5. Thank you very much, you save me!!! :D

    ReplyDelete
  6. Thanks!!! This worked for me too :)

    ReplyDelete
  7. Thanks, this was driving me nuts until I hit this post.

    ReplyDelete
  8. Wow! What a useful little post. I don't know if I ever would have figured this out on my own. Thanks!

    ReplyDelete
  9. Thanks a million!!!!!!!!!!!!!!!!!!!!!!!!!!!

    ReplyDelete
  10. Thanks for this cheeky little "fix"!!

    ReplyDelete
  11. Another solution is to lower the severity in eclipse:

    Window => Preferences => Google => Errors/Warnings => Project structure and SDKs => Missing SDK => Warning

    ReplyDelete
  12. perfect! thanks!!

    ReplyDelete
  13. Thanks thanks and thanks!!!

    Clear and functional!!!!

    ReplyDelete
  14. thanks, hah was frustrating me

    ReplyDelete
  15. thanks, you are so great.

    ReplyDelete
  16. whoa, thanks a lot, you just saved me from hours of head-scratching

    ReplyDelete
  17. Thanks a lot. This is a really annoying issue...

    ReplyDelete
  18. Thank you! This error popped up all of a sudden, and now it's gone!

    ReplyDelete
  19. you are the best!

    ReplyDelete
  20. Thanks for posting that. My project was fine for weeks and all of the sudden that happened.

    ReplyDelete
  21. thanks buddy .. had to submit my proj 2mrw n i ws just gonna die :P

    ReplyDelete
  22. Just the same that everyone: thanks a lot.

    ReplyDelete
  23. Thanks, the tip fixes the problem in a hurry.

    ReplyDelete
  24. this post saved my life!! ;) Thanks!!

    ReplyDelete
  25. Thank you so much

    ReplyDelete
  26. Got here via Stackoverflow. Thanks. This problem was so irritating!

    ReplyDelete
  27. Thank you, danke, merci, gracias :)

    ReplyDelete
  28. 謝謝! Thank you so much. It also solves my GWT compile project problem!

    ReplyDelete
  29. Thanks. I like Maven, I like GWT, I like Eclipse, but put them together and they drive me nuts. I spend hours on bizarre messages that make no sense.

    ReplyDelete
  30. This solution is awesome. However I wanted to automate it. How can I configure my pom file to include GWT SDK in the eclipse classpath.

    ReplyDelete