<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=239151707-23062000>JDOM
and applets seem to work without problems.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=239151707-23062000>I
generated compressed jar files with e.g. 'jar cf
myappl.jar'.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=239151707-23062000>The
applet tag looks like this:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000><APPLET </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000> CODE = "mypackage.MyClass"
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000> ARCHIVE =
"aelfred.jar,myappl.jar,jdom-b4.jar,openxml.jar,xerces.jar" </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000> WIDTH = 400 HEIGHT = 300
></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=239151707-23062000></APPLET><BR></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=239151707-23062000>Hĺkan
Arvidsson</DIV></SPAN></FONT>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> Vincent Vollers
[mailto:tsunami@thevoid.demon.nl]<BR><B>Gesendet:</B> Mittwoch, 21. Juni 2000
13:19<BR><B>An:</B> jdom-interest@jdom.org<BR><B>Betreff:</B> [jdom-interest]
JDOM and Applets<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>I'm trying to
get JDOM to work in an applet, </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>and it works fine
in appletviewer, </SPAN></FONT><FONT face=Arial size=2><SPAN
class=077395010-21062000>but whenever I try </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>to run it in a
browser, it all of sudden can't find</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>it's resources.
(in xerces.jar to be precise)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>but it still can't
find it's classes when I repack</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>both jdom and
xerces in 1 jar file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>(the file which it
seems to be missing:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000>org/xml/sax/InputSource</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>is present in the
.jar archive)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>or when I insert a
manifest file in jdom.jar</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>which points to
xerces.jar.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>and when I use the
java plugin, it says</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>"applet not
initialized" and keeps loading..</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>and In all three
cases it works fine in the appletviewer</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>or when I try a
test program and run it with</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000>java.exe</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>Has anyone tried
writing an applet which uses</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000>JDOM?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=077395010-21062000>- Vincent
Vollers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077395010-21062000></SPAN></FONT> </DIV></BLOCKQUOTE></BODY></HTML>