在ClassNotFoundException的日食 [英] ClassNotFoundException in eclipse

查看:207
本文介绍了在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 =新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 know the 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.

这篇关于在ClassNotFoundException的日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆