Mayur Jadhav Mayur Jadhav - 2 years ago 333
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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download