Please see the component map on the main poi page: http://poi.apache.org/

Notice that for XSSF you ought to be using a 3.5beta.

Notice that additional jars are needed.

Here is the component map:
POIFS   poi-version-yyyymmdd.jar        poi     
HPSF    poi-version-yyyymmdd.jar        poi     
HSSF    poi-version-yyyymmdd.jar        poi     
XSSF    poi-ooxml-version-yyyymmdd.jar  poi-ooxml       since 3.5-beta4
HLSF    poi-scratchpad-version-yyyymmdd.jar     poi-scratchpad  
HWPF    poi-scratchpad-version-yyyymmdd.jar     poi-scratchpad  
HDGF    poi-scratchpad-version-yyyymmdd.jar     poi-scratchpad  
HPBF    poi-scratchpad-version-yyyymmdd.jar     poi-scratchpad  
HSMF    poi-scratchpad-version-yyyymmdd.jar     poi-scratchpad

So you'll also need "poi-ooxml" and you might need "poi-scratchpad"

Regards,
Dave

On Aug 18, 2009, at 10:21 AM, Sierra Bravo wrote:


Dear all
I've been trying to get a .java file compiled with POI. Running Java 1.6 on Jaunty, I've tried various combinations of the following (with all the three jar files, both using the command line switch and the CLASSPATH environment
variable):

$ javac -classpath /home/s1b/xls/poi-3.2-FINAL-20081019.jar ReadXls.java

ReadXls.java:1: package org.apache.poi.xssf.usermodel does not exist
import org.apache.poi.xssf.usermodel.*;
^
ReadXls.java:2: package org.apache.poi.ss.usermodel does not exist
import org.apache.poi.ss.usermodel.*;
^
ReadXls.java:3: package org.apache.poi.ss.util does not exist
import org.apache.poi.ss.util.CellRangeAddress;
(And 13 more of not being able to locate the class files)

Thanks in advance...

s1b
--
View this message in context: 
http://www.nabble.com/Woes-trying-to-compile-a-.java-file-with-POI-tp25029537p25029537.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