posted 15 years ago
On the POI site, follow the "Download" link. You may need to click through "release" and "bin" directories to get to the correct file. It should be called poi-bin-3.2-FINAL-20081019.zip, and it contains the poi-scratchpad-3.2.jar and poi-3.2.jar files that you need to add to your classpath.
What do you mean by "it's not compiled properly" - do you mean the code I posted? You need to add import statements, and of course you must have the POI jar files in your classpath.