in the process of using IDEA, the service is often broken or restarted. Recently, when the service is interrupted and restarted, a startup error is encountered:
error: the main class
cannot be found or loaded
guess: 1, failed to compile;
try: menu -> Build – “Rebuild Prodject p>
result: the startup service still reports the same error
2, caching problem;
try: menu — “File–” Invalidate Caches/Restart select Invalidate and Restart or just Invalidate, clear the cache, and then Rebuild Project
results: start successfully, problem solving
Read More:
- Error: the main class usertest could not be found or loaded
- The main class could not be found or loaded when springboot started
- The main class com.hp.springbootapplication cannot be found or loaded
- Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
- Idea error: unable to find or load the main class
- Idea project prompt: symbol not found or package does not have a solution
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- Idea startup project Lombok error, no symbol found
- [Solved] IntelliJ IDEA Compile Groovy Error: GroovyRuntimeException: This script or class could not be run.
- IntelliJ idea class is normal, but error is marked in red and cannot be found
- IntelliJ idea error: package not found or symbol not found
- The media could not be loaded, either because the server or network failed or because the format is
- Error: could not find or load main class
- Could not find or load main class
- Error: Could not find or load main class ***
- The Java command could not find or load the main class
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- Project with path ‘XXXX’ could not be found
- Java error: unable to find or load the main class