poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Kent <bobbyken...@gmail.com>
Subject Re: Installation Problems
Date Fri, 13 Aug 2010 03:16:32 GMT
I'd think you need to specify a classpath that is accessible from the context of the browser's
JVM, i.e. as URLs...

Alternatively you could rebundle all the dependent jars into a single jar, Eclipse is capable
of doing this kind of thing.



On Aug 12, 2010, at 13:06, Thomas P Laford <Thomas_P_Laford@raytheon.com> wrote:

> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message