OK. I found dom4j. My class path now has the following JAR files:
poi-3.6-20091214.jar
poi-ooxml-3.6-20091214.jar
poi-ooxml-schemas-3.6-20091214.jar
xbean.jar
dom4j-1.6.1\dom4j-1.6.1.jar
When I write my class as a JFrame, and run it as an application it works
fine! It can open an XLSM file and look at the sheets.
When I write my class as a JApplet, and try to run the class file using
the appletview or IE7, it fails just like before:
java.lang.NoClassDefFoundError:
org/apache/poi/xssf/usermodel/XSSFWorkbook
When I put my JApplet class in a JAR file with the five JAR files noted
above, and try to run it in the appletview or IE7, it fails just like
before:
java.lang.NoClassDefFoundError:
org/apache/poi/xssf/usermodel/XSSFWorkbook
I tried it on a PC running the follwoing combinations:
- IE7 and Java1.6
- IE6 and Java1.5
But I can not get IE to see the other JAR files.
So my code works as an application, now I need to figure out what I'm
doing wrong in creating the applet.
The MANIFEST.MF looks like this:
Manifest-Version: 1.0
Created-By: 1.6.0_21 (Sun Microsystems Inc.)
Class-Path: poi-3.6-20091214.jar poi-ooxml-3.6-20091214.jar
poi-ooxml-schemas-3.6-20091214.jar xbean.jar dom4j-1.6.1.jar
Am I forgetting something? Can anyone offer any insight into why I can't
access POI from an applet?
Thomas