Mayur Jadhav Mayur Jadhav - 5 months ago 42x
Java Question

Error: Could not find or load main class while compiling a GWT project

Whenever I try to compile any of my GWT application the compilation fails with the error message "Error: Could not find or load main class". This problem started after I made some changes to the path and classpath environment variables while installing Tomcat, I don't know whether these changes caused the problem. I tried to reinstall GWT plugin but all in vain. Any help would be greatly appreciated. I am using Eclipse 4.3 and GWT SDK 2.6.0.


Try Run As > Run Configurations, delete the current configuration by clicking on the X top left. Apply and close. Now, Run As > Web application. A default configuration will be created.

If you have any VM arguments, copy them before doing the steps above.