对于出现很多错误,提示:Errof:"The method xxx is undefind for the type of xxx"等类似的问题,假如同样的代码,在别的电脑上是正常的,那么,你可以这样做:
1.选择project-->build path-->configure build pah-->Order and Export
2.将所需要的jar包移到顶端,点击apply即可
原因是:你调用的jar包无法访问到,移到顶端则可以访问到
对于出现很多错误,提示:Errof:"The method xxx is undefind for the type of xxx"等类似的问题,假如同样的代码,在别的电脑上是正常的,那么,你可以这样做:
1.选择project-->build path-->configure build pah-->Order and Export
2.将所需要的jar包移到顶端,点击apply即可
原因是:你调用的jar包无法访问到,移到顶端则可以访问到