1、配置Java环境 错误: 找不到或无法加载主类 HelloWorld 原因: java.lang.ClassNotFoundException: HelloWorld 解决:java文件所在路径中有中文路径、空格。