韩国寄到中国几天:NoClassDefFoundError是什么错?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/10 08:05:47
import java.io.*;
public class subStrg {
public static void main(String args[]){
String str="this is a string type!";
String subStr=null;
try{
subStr=str.substring(0,3);
System.out.println("standard");
}catch(Exception e){
System.out.println(e);
}
}

}运行不了

8月8日 11:18 这句话的意思是说:
线程main产生一个异常,在java.lang包中定义的发现未定义类的错误。
应该检查你的JAVA环境设置,可能classpath不对或者没有?还有JAVA对大小写敏感,要小心哦!