本文介绍了Eclipse 中的 ClassNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public void ReadXL(String Path) throws Exception
{
FileInputStream myStream=null;
System.out.println("InReadxl");
File xlFile = new File(Path);
myStream = new FileInputStream(xlFile);
HSSFWorkbook myWB = new HSSFWorkbook(myStream);
...........................
}
HSSFWorkbook myWB = new HSSFWorkbook(myStream);
正在创建**ClassNotFoundException**()
添加外部jar文件后poi-3.7-20101029"
.什么可能导致问题?请告诉我这个问题的解决方案.
HSSFWorkbook myWB = new HSSFWorkbook(myStream);
is creating**ClassNotFoundException**()
after adding external jar file"poi-3.7-20101029"
. What might be causing the problem? Please, let me knowthe solution of this problem.
推荐答案
清理您的项目并重试.可能是 Eclipse 问题.
Clean your project and try again. Maybe a Eclipse issue.
您是否尝试在另一个项目中使用它?您确定错误堆栈跟踪.可能 ClassNotFound 异常是由另一个内部错误引起的.
Have you tried to use that on another project?Are you sure about the error stack trace. Maybe the ClassNotFound Exception is caused by another internal error.
这篇关于Eclipse 中的 ClassNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!