Search code examples
javaeclipsegwteclipse-juno

"Main type not specified" with GWT and Eclipse Juno 4.2


After upgrading to Eclipse Juno 4.2 (through a fresh install) and installing GWT Plugin (3.0.0v201206271046-rel-r42) from http://dl.google.com/eclipse/plugin/4.2, I can't start my GWT application.

I configure the GWT nature of my project just like with Eclipse 3.7 but when I run my application, after selecting my entry point, the start fails with: "Main type not specified"

It appears gwt-dev.jar is not included. GWT referenced library are not added in my project. So I needed to reselect GWT 2.4 in my project configuration. Then, gwt-dev.jar is added correctly in the "Referenced Library" section. But I still get the same error at startup.

Any idea?


Solution

  • It has been workarounded by adding explicitely "com.google.gwt.dev.DevMode" in the "Main class" field on the "Main" tab in the run configuration