ClassNotFoundException in eclipse

独自空忆成欢 提交于 2019-12-13 09:44:04

问题


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); 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.


回答1:


Have you got all the required Jars on the runtime & build tabs of your plugin.xml?




回答2:


Clean your project and try again. Maybe a Eclipse issue.

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.



来源:https://stackoverflow.com/questions/10471683/classnotfoundexception-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!