Are you sure the project was rebuild completely? Eclipse could show no
code errors but can`t build the project for some reasons (missing
dependencies, for example). So the old class files could be used (or
some class files could be not created at all). Eclipse has "Problems"
tab showing current compilation. and building problems. Check the
content of it.

On Fri, Nov 25, 2011 at 6:41 AM, coisox <[email protected]> wrote:
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to