File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Getting java.lang.NoClassDefFoundError while trying POI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Getting java.lang.NoClassDefFoundError while trying POI" Watch "Getting java.lang.NoClassDefFoundError while trying POI" New topic
Author

Getting java.lang.NoClassDefFoundError while trying POI

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
Hi,

i am getting the following exception while trying out POI; java.lang.NoClassDefFoundError

Could anyone tell me why this is happening, am not getting any clue as to why this is failing. I have set the following jar files in my class path


C:\Program Files\POI\poi-3.0-rc4\poi-3.0-rc4-20070503.jar;C:\Program Files\POI\poi-3.0-rc4\poi-contrib-3.0-rc4-20070503.jar;C:\Program Files\POI\poi-3.0-rc4\poi-scratchpad-3.0-rc4-20070503.jar

but still getting the same error.
Could any one please help me out in this, I really need to get this running ASAP.

thanks
Anil
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16479
    
    2

That always, always means that the class mentioned in the error message is not in the classpath of the application which tried to load it.

If you need help setting your classpath might I suggest having this post moved to the New to Java forum? There's nothing special about POI in this request. Let me know, that topic is discussed very frequently there.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35223
    
    7
I notice that the classpath contains spaces - is it properly quoted wherever necessary?

Apart from that I'd advise to switch to the latest release of POI (3.5) posthaste; it is magnitudes better than some release candidate of 3.0. You'll save yourself a lot of grief.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting java.lang.NoClassDefFoundError while trying POI
 
Similar Threads
Converting a Word doc into a Gui.
Error while executing build.xml
Formating problem
Exception while configuring Struts2.1.6 with Tomcat 5.0
AspectJ-1.6.3rc1 getting java.lang.OutOfMemoryError: Java heap space