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]
