I’m about to tear my hair out…and this is an obvious issue to a lot of people cuz there are tons of posts on other forums (with no obvious answer as far as I can see) and all of those posts have been read numerous times.
I’m trying to use Apache’s POI. I have 3 jar files:
poi-3.2-FINAL-20081019.jar
poi-contrib-3.2-FINAL-20081019.jar
poi-scratchpad-3.2-FINAL-20081019.jar
All three are in a directory I’ve set up specifically for my jar files. In eclipse -> Project -> Properties, I go to the Libraries tab of the Java Build Path section and add external jars. I’ve added all 3 jars. I’ve restarted eclipse, re-built the application, and still every time I run, eclipse pops me into debug mode and gives me the NoClassDefFoundError. It compiles fine when I’m writing the code but doesn’t run. One post said to do the following, which I did: Click on the down arrow next to the “Run” button. Click on Open Run Dialog and make sure the classpath tab contains those jars.
Well, when I click on any of the items to the left, all I get on the right is text – I don’t get a Classpath tab. I can create a new configuration, and then I’ll see the classpath tab. But in the classpath tab, those 3 jars are already listed.
I’m seriously so frustrated. And I’m not sure if I’m posting in the right place – is this myeclipse or just eclipse? Ugh….I’m ready to go back to vi now.