poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madabhattula Rajesh Kumar <mrajaf...@gmail.com>
Subject Need help on POI
Date Fri, 11 Jul 2014 15:40:14 GMT
Hi Team,

I'm getting below exception. Could you please help me to resolve this issue.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/poi/hssf/usermodel/HSSFWorkbook
    at
com.cisco.Ingestion.Streaming.utility.ExcelToTextFile.parseExcel(ExcelToTextFile.java:60)
    at
com.cisco.Ingestion.Streaming.utility.ExcelToTextFile.main(ExcelToTextFile.java:26)
Caused by: java.lang.ClassNotFoundException:
org.apache.poi.hssf.usermodel.HSSFWorkbook
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 2 more

Below is my pm.xml entry.

 <dependency>
   <groupId>org.apache.poi</groupId>
   <artifactId>poi</artifactId>
   <version>3.9</version>
</dependency>
<dependency>
   <groupId>xml-apis</groupId>
   <artifactId>xml-apis</artifactId>
   <version>1.4.01</version>
</dependency>
<dependency>
   <groupId>org.apache.poi</groupId>
   <artifactId>poi-ooxml</artifactId>
   <version>3.9</version>
   <exclusions>
     <exclusion>
       <artifactId>xml-apis</artifactId>
       <groupId>xml-apis</groupId>
     </exclusion>
   </exclusions>
</dependency>

Thank you for your help

Regards,
Rajesh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message