假如:
D:\test\helloword.java
代码如下
package test;
public class HelloWorld {
public static void main(String[] args) {
int i = 10;;
}
}
如果我们想执行helloword代码,则需要在D:\路径下,执行java test.helloword则不会再报 “错误: 找不到或无法加载主类”
假如:
D:\test\helloword.java
代码如下
package test;
public class HelloWorld {
public static void main(String[] args) {
int i = 10;;
}
}
如果我们想执行helloword代码,则需要在D:\路径下,执行java test.helloword则不会再报 “错误: 找不到或无法加载主类”