在DrawLine 里添加一个字段private static final serialVersionUID=-1;

解决方案 »

  1.   

    在project的properties下的 java build path下将原来的libraries remove掉重新add一个你自己安装的java中的jre即可 大胆操作弄坏了eclipse大不了重装
      

  2.   

    1、Go to the Build Path settings in the project properties.
    2、Remove the JRE System Library
    3、Add it back; Select "Add Library" and select the JRE System Library. 
    OK!