[JAVA] Error: Main class not found or could not be loaded

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

Error: Main class not found or could not be loaded
[Java] Main class XXX was not found or could not be loaded
If macOS Catalina says "Error: Main class XX was not found or could not be loaded"
"Error: Main class XXX not found or could not be loaded" occurs even though the main class exists
Today's java error: Error: Could not find or load main class
Spring-Boot main class not found
ERROR! MySQL server PID file could not be found!
HttpServletRequest class file not found
[Error resolution] HV000030: No validator could be found for constraint ~ ~
Symbol not found error when new class in another Java file
Error in ./gradlew: Symbol not found
The story that the Servlet could not be loaded in the Java Web application
gradle Could not find tools.jar. Error countermeasures
Story when migration could not be done
RubyOnRails, Authentication plugin'caching_sha2_password' cannot be loaded error solution
ffi Library not loaded: fix error in /opt/brew/opt/libffi/lib/libffi.6.dylib