coisox
2011-11-25 02:41:35 UTC
I include all .jar from poi-3.8-beta4 folder. My code like below:
import org.apache.poi.ss.usermodel.*;
InputStream inputStream = new FileInputStream("C:\\file.xls");
Workbook wb = WorkbookFactory.create(inputStream);
return wb.toString();
The code has no error but when i run my application, i got
java.lang.ClassNotFoundException:
org.apache.poi.ss.usermodel.WorkbookFactory
Why? I already include the library and the code can read it (coz no error)
and rebuild the eclipse workspace but when runtime it can't be reached?
The same goes if i use org.apache.poi.extractor.ExtractorFactory with
ExtractorFactory.createExtractor(file).
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/java-lang-ClassNotFoundException-org-apache-poi-ss-usermodel-WorkbookFactory-tp5021705p5021705.html
Sent from the POI - User mailing list archive at Nabble.com.
import org.apache.poi.ss.usermodel.*;
InputStream inputStream = new FileInputStream("C:\\file.xls");
Workbook wb = WorkbookFactory.create(inputStream);
return wb.toString();
The code has no error but when i run my application, i got
java.lang.ClassNotFoundException:
org.apache.poi.ss.usermodel.WorkbookFactory
Why? I already include the library and the code can read it (coz no error)
and rebuild the eclipse workspace but when runtime it can't be reached?
The same goes if i use org.apache.poi.extractor.ExtractorFactory with
ExtractorFactory.createExtractor(file).
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/java-lang-ClassNotFoundException-org-apache-poi-ss-usermodel-WorkbookFactory-tp5021705p5021705.html
Sent from the POI - User mailing list archive at Nabble.com.