public class TestHuman {
public static void main(String[] args) {
system.out.println (” hello Word!!”) );
}
}
can execute javac hello. Java instruction code is ok, when executing Java hello, there is a problem, it should be the environment variable configuration, what is the problem…
After a long search, I found the CLASSPATH {%JAVA_HOME%\lib; %JAVA_HOME%\lib\tools.jar}, preceded by “.;” .
Why is it missing?Does not affect Eclipse but will affect the operation of CMD…
Eclipse will automatically configure packages, projects, and paths for us, so that’s fine,
CMD has to manually configure these paths by itself, adding “. “means the current path, so there is no need to write the path step by step.
And I at the beginning of the configuration, should not understand what the point here is, there is no configuration, almost make a joke, mutual encouragement ~ mutual encouragement ~
Read More:
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- The Java command could not find or load the 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
- Java error: unable to find or load the main class
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Idea error: unable to find or load the main class
- Error: the main class usertest could not be found or loaded
- Unable to find or load master class org.codehaus.groovy.grails.cli.support
- The main class could not be found or loaded when springboot started
- Idea startup project: main class not found or cannot be loaded
- Failed to load Main-Class manifest attribute from when the jar file is running
- Hive execution task report cannot find main class error
- When jar file is running: Failed to load Main-Class manifest attribute from ……Solution
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- This application failed to start because it could not find or load the QT platform
- The main class com.hp.springbootapplication cannot be found or loaded
- This application failed to start because it could not find or load the Qt platform plugin “windows”.
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity