Thanks Nick.

I tried with poi-jdk14-3.5-beta1-20080718.jar and now I get a different
exception.
(I am trying to parse a file with .xlsm type )

Unhandled Exception thrown: class
org.apache.poi.poifs.filesystem.OfficeXmlFileException
Root cause of ServletException.
org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied
data appears to be in the Office 2007+ XML. POI only supports OLE2
Office documents
        at
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.
java:108)
        at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.j
ava:151) 


Please let me know if am using the correct library to parse this file?

Thanks,
Nagaraj

-----Original Message-----
From: Nick Burch [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2008 3:19 PM
To: POI Users List
Subject: Re: class file has wrong version 49.0, should be 48.0

On Mon, 15 Sep 2008, Davanagere, Nagaraj wrote:
> My java source compilation fails with the following exception.
>    [javac] util\FileUploadHelper.java:12: cannot access 
> org.apache.poi.hssf.usermodel.HSSFCell
>    [javac] bad class file:
> lib\poi-3.5-beta1-20080718.jar(org/apache/poi/hssf/usermodel/HSSFCell.
> cl
> ass)

If you're still on java 1.4, you'll want
poi-jdk14-3.5-beta1-20080718.jar instead of poi-3.5-beta1-20080718.jar.
It's in the binary download along with the jar you're using

Nick

---------------------------------------------------------------------
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