[求助]新手,一段简单代码不能运行
我是新手,winxp sp2,JCreator Pro3.5,照书copy了一段
public class Welcome1
{
public static void main( String args[] )
{
System.out.println("welcome to java programming!");
}
}
可一运行就说
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
Press any key to continue...
请问各位高手,是咋回事?
JCreator说:
--------------------Configuration: <Default>--------------------
C:\Welcome.java:1: 类 Welcome1 是 公共的(public〕,应该在名为 Welcome1.java 的文件中被声明
public class Welcome1
^
1 个错误
Process completed.