At the command prompt, when you run a Java program, it says "Can not find or load the main class"

White: At the command prompt, when you run a Java program, it says "Can not find or load the main class."

Great God: the role of running Java programs is to load the Java interpreter, test and run the bytecode files (.class). Therefore, when you run a Java program, command statements can not be wrong. Command to run Java programs are "java file name", java followed by a space, the file name can not be combined with extension.

Guess you like

Origin www.cnblogs.com/zhangzhikang/p/12071091.html