部分代码:       
            .
            .
            .
  public static ArrayList alI;
  String word;
  word = this.getTOKEN(this.arrayExe, this.record); 
  alI.add(new Int(word));//将声明的int变量加入alI
            .
            . 
            ./**Int类如下**/
public class Int {
String name;
int value;

public Int(String name){
this.name = name;
this.value = 0;
}
}

解决方案 »

  1.   

    因为很简单似乎你的ArrayList没有new。
    public static ArrayList alI = new ArrayList();
      

  2.   

    哦,我new了,只是忘记粘贴了!但是Eclipse就是执行到alI.add(new Int(word));这句话就不执行了,它也不抛出什么异常!烦...
      

  3.   

    Debug一下,你确定是执行到这句不执行了吗?用事实说话
      

  4.   

    ClassNotFoundException(Throwable).<init>(String, Throwable) line: 217执行到那句话时,stack顶部就抛出这个错!
      

  5.   

    估计问题是在这句上
    word   =   this.getTOKEN(this.arrayExe,   this.record);   我把这句换成word="xxxxx";
    就没问题