Hi Nick, Thank you for the details. Could you please me to on, how to add this to classpath for runtime.
Using maven i'm creating jar file and executing this jar using "java -jar readExcel.jar" Regards, Rajesh On Fri, Jul 11, 2014 at 9:12 PM, Nick Burch <[email protected]> wrote: > On Fri, 11 Jul 2014, Madabhattula Rajesh Kumar wrote: > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/poi/hssf/usermodel/HSSFWorkbook >> > > You haven't got the POI jar on your classpath at runtime > > > Below is my pm.xml entry. >> >> <dependency> >> <groupId>org.apache.poi</groupId> >> <artifactId>poi</artifactId> >> <version>3.9</version> >> </dependency> >> > > That covers compiling your application. Deployment is different. Make sure > all the jars you depend on end up packaged + on your classpath for runtime > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
