In eclipse ** "Error: Main class not found or could not be loaded" ** I got the error.
➡︎ Probably the .class file seems strange. ➡︎.class is an automatically generated file, so developers don't want to mess with it too much.
[Countermeasure] (1) Delete it from Eclipse's Package Explorer (do not delete it from the disk).
② Next, Package explorer right click > Import > General > Transfer existing projects to workspace
Select the deleted project folder And resurrection
This should fix it.
Even if the deleted project was under the control of SVN, it was okay if it was restored by the same procedure.
Thank you for your help on this page.
http://dqn.sakusakutto.jp/2013/12/java_error_mainclass_not_loaded.html
Recommended Posts