I mounted all jars in the classpath
But i m getting the below exception
org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
at
org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:60)
at
org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:236)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:160)
David Fisher wrote:
>
> This is a basic Java question.
>
> You don't merge them - you put them all in your classpath. How depends
> on whether you are using java directly on the command line or though a
> tool like Eclipse.
>
> Regards,
> Dave
>
> On May 18, 2009, at 4:48 AM, MY POI wrote:
>
>>
>>
>> thanks for the reply..
>>
>> How do i merget all the three jars...
>>
>>
>>
>>
>>
>>
>> Yegor Kozlov wrote:
>>>
>>> You seem to be using HSSFWorkbook to read .xlsx files. Use either
>>> WorkbookFactory or XSSFWorkbook .
>>>
>>> http://poi.apache.org/spreadsheet/quick-guide.html#ReadWriteWorkbook
>>>
>>> Yegor
>>>
>>>
>>>> Hi i m getting the below exception when i try to .xlsx files. Even
>>>> though
>>>> i
>>>> tried with POI 3.2 version.
>>>>
>>>> Can you tell me the solution for the problem.
>>>>
>>>> java.io.IOException: Invalid header signature; read
>>>> 1688935826934608,
>>>> expected -2226271756974174256
>>>> at
>>>> org
>>>> .apache
>>>> .poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:
>>>> 88)
>>>> at
>>>> org
>>>> .apache
>>>> .poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:
>>>> 83)
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/.XLSX-issue-tp23591310p23595657.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]
>
>
>
--
View this message in context:
http://www.nabble.com/.XLSX-issue-tp23591310p23610403.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]