No subject


Fri Aug 6 17:04:17 PDT 2004


he draws or not some controls on the applets panel.
The applet runs on the "MyDir" Directory and the images are placed on
the "Images" directory(http://MyHost/MyDir/images/)
<http://MyHost/MyDir/images/> .
On my java.security file, i have inserted this following line:=20
policy.url.3=3Dfile:/D:/Testes/Applets/wwwroot/UnifPol
=20
Where UnifPol is configured like that:
grant codeBase " <http://myhost/MyDir/xml/> http://MyHost/MyDir/-" {
  permission java.io.FilePermission "<<ALL FILES>>", "read";
};
=20
I have installed the java plugin for Internet Explorer and the applet
tag of the html file have the follow parameters:
codebase=3DMyInitClass.class archive=3DMyJar.jar, jdom.jar
=20
This works fines on my machine, the same as the host(MyHost) but on the
other machines of my local network shows the error above.
What could it be?
What can i do to make it work for all machines???
=20
thanks,
=20
Leonardo Klarmann Porto
Analista de Sistemas - GDes
Spin Engenharia de Automa=E7=E3o Ltda

------=_NextPart_000_0088_01C3D904.42499140
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Mensagem</TITLE>

<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>hi, my =
name is=20
Leonardo Porto and i'm new in this list.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT face=3DArial size=3D2><SPAN =

class=3D375324714-12012004></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>I am =
here to ask how=20
can i use JDom on an Applet.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>I have =
my applet=20
that runs with jdom on my machine. But it doesn't run in other machines. =
The=20
reason is the following exception:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT><SPAN=20
class=3D375324714-12012004></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 =
size=3D2>java.lang.NoClassDefFound=20
org/xml/sax/SAXNotRecognized exception</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>This =
is how the=20
applet functions:</FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>From a =
determined=20
time to time, he reads the xml file from the "Xml" host directory(<A=20
href=3D"http://MyHost/MyDir/xml/">http://MyHost/MyDir/xml/</A>) and with =
the=20
information in it he draws or not some controls on the applets=20
panel.</FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>The =
applet runs on=20
the "MyDir" Directory and the images are placed on the "Images" =
directory(<A=20
href=3D"http://MyHost/MyDir/images/">http://MyHost/MyDir/images/)</A>.</F=
ONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>On my =
java.security=20
file, i have inserted this following line: </FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial color=3D#ff0000 =

size=3D2>policy.url.3=3Dfile:/D:/Testes/Applets/wwwroot/UnifPol</FONT></S=
PAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT><SPAN class=3D375324714-12012004><FONT face=3DArial =
size=3D2>Where=20
UnifPol is configured like that:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT><SPAN class=3D375324714-12012004><FONT face=3DArial =
size=3D2><FONT=20
color=3D#ff0000>grant codeBase "</FONT><A =
href=3D"http://myhost/MyDir/xml/"><FONT=20
color=3D#ff0000>http://MyHost/MyDir/</FONT></A><FONT color=3D#ff0000>-" =
{<BR>&nbsp;=20
permission java.io.FilePermission "&lt;&lt;ALL FILES&gt;&gt;",=20
"read";<BR>};</FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT><SPAN class=3D375324714-12012004><FONT face=3DArial =
color=3D#ff0000=20
size=3D2></FONT></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT><SPAN class=3D375324714-12012004><FONT face=3DArial =
size=3D2>I have=20
installed the java plugin for Internet Explorer and the applet tag of =
the html=20
file have the follow parameters:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#ff0000 size=3D2><SPAN=20
class=3D375324714-12012004>codebase=3DMyInitClass.class =
archive=3DMyJar.jar,=20
jdom.jar</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004>This works fines on my machine, the same as =
the=20
host(MyHost) but on the other machines&nbsp;of my&nbsp;local network =
shows the=20
error above.</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004>What could it be?</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004>What&nbsp;can i do to make it work for all=20
machines???</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004>thanks,</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN=20
class=3D375324714-12012004></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Leonardo Klarmann =
Porto</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Analista de Sistemas - =
GDes</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Spin Engenharia de =
Automa=E7=E3o=20
Ltda</FONT></DIV></SPAN></FONT></FONT></SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0088_01C3D904.42499140--





More information about the jdom-interest mailing list