Looks like you are new to Java. Take some time to familiarize yourself with the 
java environment. For setting classpath check this page 
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

This mailing list is meant for discussions related to the POI library itself. 

-Rk

-----Original Message-----
From: Parag Kalra [mailto:[email protected]] 
Sent: Thursday, June 24, 2010 10:45 AM
To: POI Users List
Subject: Re: Unable to process ApachePoi using command prompt

I have tried different set of options to set classpath like setting the
variable, providing -classpath argument etc.

But somehow its not working. Any idea were to place the .java files in
reference with Apache POI .jar files.

If anybody can share some HelloWorld code showing the inclusion of jar files
it would helpful.

Cheers,
Parag



On Wed, Jun 23, 2010 at 9:26 PM, David Fisher <[email protected]>wrote:

> Hi Parag,
>
> > java.lang.NoClassDefFoundError:
>
>
> This is almost always s problem with your java classpath,
>
> Regards,
> Dave
>
> On Jun 23, 2010, at 9:19 PM, Parag Kalra wrote:
>
> > Hi All,
> >
> > I downloaded ApachePOI and Placed my dummy excel sheet into the folder
> after
> > extraction. Then I got a code to parse the excel sheet and ran it using
> > Eclipse and it worked.
> >
> > But when I am trying to run the same code using java after successfully
> > compiling it through javac, the same code is not running on command
> prompt.
> >
> > It is throwing following message:
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError: bin\xl2csv
> > Caused by: java.lang.ClassNotFoundException: bin\xl2csv
> >        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > Could not find the main class: bin\xl2csv.  Program will exit.
> >
> > Any clue?
> >
> > Cheers,
> > Parag
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to