• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Getting java.lang.NoClassDefFoundError while trying POI

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 28344
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic