"GWT Hosted Mode Application", imme" /> "GWT Hosted Mode Application", imme" /> "GWT Hosted Mode Application", imme"/>

GWT 2.6.1 Error: Could not find or load main class com.google.gwt.dev.GWTShell

5.1k Views Asked by At

I am trying to execute a sample application built on GWT 2.6.1 and when I click on app.gwt.xml and say "Run as" -> "GWT Hosted Mode Application", immediately the console prints "Error: Could not find or load main class com.google.gwt.dev.GWTShell"..

As far as the answers that I gathered about this issue is, GWT compiler is looking to read the gwt-dev-windows.jar which is not part of GWT 2.6.1 and I do have gwt-dev.jar in my classpath too.

Can someone suggest me how to figure out this issue.

2

There are 2 best solutions below

2
Igor Klimer On

GWTShell was removed in GWT 2.5.1. You should use com.google.gwt.dev.DevMode instead as your main class. Please see Google Plugin for Eclipse's documentation for more information.

0
Thomas Broyer On

The problem is that the Google Plugin for Eclipse fails to detect the version of GWT you're using and (incorrectly IMO) falls back to legacy mode (which could almost be called "legacy legacy" now that we have SuperDevMode).

That was a known issue with 2.6.0 but 2.6.1 should have "fixed" it. You might have to update your Google Plugin for Eclipse, or try manually changing the main class to com.google.gwt.dev.DevMode.