helloworld出错。
netbeans吧
全部回复
仅看楼主
level 1
nx1974 楼主

package helloworld;
/**
*
* @author nx
*/
public class Main{
     /**
      * @param args the command line arguments
      */
     public static void main(String args[]) {
         System.out.println("Hello World!");
     }
}
出错,说找不到主类Helloworld.Main 。请问大家,这是什么意思?
2011年02月19日 03点02分 1
level 1
我编译了一下,是可以运行的,你用纯JAVA编译一下就知道了
也就是控制台下的
javac Main.java
------------------
java Main 运行。
2011年12月10日 07点12分 2
level 2
是因为你的原文件名和类名不同,.java文件名要和文件中用public修饰的类的名字相同
2012年03月06日 08点03分 3
1