[求助]这个错误怎么解决!!
这个程序public class WhileDemo {
public static void main (String[] args) {
String copyFromMe = "Copy this string until you encounter the letter'g'.";
StringBuffer copyToMe = new StringBuffer();
int i = 0;
char c = copyFromMe.charAt(i);
while(c!='g'){
copyToMe.append(c);
c = copyFromMe.charAt(++i);
}
System.out.println(copyToMe);
}
}
我用JCreatorPro 能很好的运行但在 dos 下却出现这个错误
Exception in thread "main" java.lang.NoClassDefFoundError:WhileDemo
请问这个是什么错误怎么解决??