1、 Problem
today, copy the code of idea to eclipse for execution, and then report an error: “error: unable to find or load the main class”;
2、 The solution
can be executed in idea and can be executed in eclipse, which means that there is no problem with the code. The only problem is the running environment. After checking the configuration, the problem is found:
here is an error in Maven dependency:
what the hell pom.xml Log off the error reporting dependency in the file, and then run the main method;
Read More:
- Idea error: unable to find or load the main class
- The Java command could not find or load the main class
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- Could not find or load main class
- Error: Could not find or load main class ***
- Error: could not find or load main class
- Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
- Unable to find or load master class org.codehaus.groovy.grails.cli.support
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Failed to load Main-Class manifest attribute from when the jar file is running
- When jar file is running: Failed to load Main-Class manifest attribute from ……Solution
- Hive execution task report cannot find main class error
- Error: the main class usertest could not be found or loaded
- Idea startup project: main class not found or cannot be loaded
- The main class com.hp.springbootapplication cannot be found or loaded
- Python error: importerror: DLL load failed: unable to find the specified module solution
- Jumper notebook, import numpy, prompt “importerror: DLL load failed: unable to find the specified module”
- java.lang.IllegalStateException : unable to read meta data for class
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- [resolved] error: Java: illegal character: ‘\ ufef’ or error: Java: class, interface or enum required