<html>
Another variation of the applet vs developer struggle? I spent all
yesterday working on what I think is the same problem. My code
snippit looks like this:<br>
<br>
<APPLET CODE = "JappletAppl.class" ARCHIVE = "
IA9.jar, jdom-b4.jar, xerxes.jar" WIDTH = 100 HEIGHT = 80 ><br>
<br>
The first part of the error I get is (from the Java 1.3 Plug-in
console):<br>
<br>
java.lang.NoClassDefFoundError:
org/xml/sax/SAXNotRecognizedException<br>
<x-tab> </x-tab>at
LoadJDOM.<init>(LoadJDOM.java:97)<br>
<x-tab> </x-tab>at
LoadJDOM.<init>(LoadJDOM.java:84)<br>
<x-tab> </x-tab>at
Annotations.loadIML1(Annotations.java:743)<br>
<x-tab> </x-tab>at
DAFrame.getFrame(DAFrame.java:224)<br>
<x-tab> </x-tab>(etc...)<br>
<br>
My code, of course, works fine in the development environment.<br>
<br>
What, and where, is the openxml.jar file? Is that the
problem?<br>
<br>
I'm not as familiar with jars, manifests, etc. so not sure where to go
from here. <br>
<br>
Thanks for any help,<br>
<br>
Bill<br>
<br>
<br>
At 12:29 AM 6/23/2000, you wrote:<br>
<blockquote type=cite cite><font face="arial" size=2 color="#0000FF">JDOM
and applets seem to work without problems.</font><br>
<font face="arial" size=2 color="#0000FF">I generated compressed jar
files with e.g. 'jar cf myappl.jar'.</font><br>
<br>
<font face="arial" size=2 color="#0000FF">The applet tag looks like
this:</font><br>
<font face="arial" size=2 color="#0000FF"><APPLET </font><br>
<font face="arial" size=2 color="#0000FF"> CODE =
"mypackage.MyClass" </font><br>
<font face="arial" size=2 color="#0000FF"> ARCHIVE =
"aelfred.jar,myappl.jar,jdom-b4.jar,openxml.jar,xerces.jar"
</font><br>
<font face="arial" size=2 color="#0000FF"> WIDTH = 400
HEIGHT = 300 ></font><br>
<font face="arial" size=2 color="#0000FF"></APPLET><br>
Hĺkan Arvidsson</font>
<dl><font face="tahoma" size=2>
<dd>-----Ursprüngliche Nachricht-----
<dd>Von:</b> Vincent Vollers
[<a href="mailto:tsunami@thevoid.demon.nl" eudora="autourl">mailto:tsunami@thevoid.demon.nl</a>]
<dd>Gesendet:</b> Mittwoch, 21. Juni 2000 13:19
<dd>An:</b> jdom-interest@jdom.org
<dd>Betreff:</b> [jdom-interest] JDOM and Applets<br>
<br>
</font><font face="arial" size=2>
<dd>Hi all,</font>
<dd> <font face="arial" size=2>
<dd>I'm trying to get JDOM to work in an applet,
</font><font face="arial" size=2>
<dd>and it works fine in appletviewer, but whenever I try
</font><font face="arial" size=2>
<dd>to run it in a browser, it all of sudden can't
find</font><font face="arial" size=2>
<dd>it's resources. (in xerces.jar to be precise)</font>
<dd> <font face="arial" size=2>
<dd>but it still can't find it's classes when I
repack</font><font face="arial" size=2>
<dd>both jdom and xerces in 1 jar
file.</font><font face="arial" size=2>
<dd>(the file which it seems to be
missing:</font><font face="arial" size=2>
<dd>org/xml/sax/InputSource</font><font face="arial" size=2>
<dd>is present in the .jar archive)</font>
<dd> <font face="arial" size=2>
<dd>or when I insert a manifest file in
jdom.jar</font><font face="arial" size=2>
<dd>which points to xerces.jar.</font>
<dd> <font face="arial" size=2>
<dd>and when I use the java plugin, it
says</font><font face="arial" size=2>
<dd>"applet not initialized" and keeps loading..</font>
<dd> <font face="arial" size=2>
<dd>and In all three cases it works fine in the
appletviewer</font><font face="arial" size=2>
<dd>or when I try a test program and run it
with</font><font face="arial" size=2>
<dd>java.exe</font>
<dd> <font face="arial" size=2>
<dd>Has anyone tried writing an applet which
uses</font><font face="arial" size=2>
<dd>JDOM?</font>
<dd> <font face="arial" size=2>
<dd>- Vincent Vollers</font>
<dd>
</dl></blockquote></html>