用notepad++编译找不到或无法加载主类
本帖最后由 zonghui 于 2020-8-8 11:00 编辑用notepad++编译找不到或无法加载主类
但是用命令提示符运行可以
public class Test4{
public static void main(String args[]){
int x=10;
int y=20;
int z=x+y;
System.out.println("a"+z);
}
}
<<< Process finished (PID=10676). (Exit code 0)
CD: C:\Users\86187\Desktop\Test
Current directory: C:\Users\86187\Desktop\Test
java ""
Process started (PID=4772) >>>
错误: 找不到或无法加载主类
原因: java.lang.ClassNotFoundException:
<<< Process finished (PID=4772). (Exit code 1)
================ READY ================ https://blog.csdn.net/sinat_21843047/article/details/78549076
页:
[1]