Mensagem
hi, my name is
Leonardo Porto and i'm new in this list.
I am here to ask how
can i use JDom on an Applet.
I have my applet
that runs with jdom on my machine. But it doesn't run in other machines. The
reason is the following exception:
java.lang.NoClassDefFound
org/xml/sax/SAXNotRecognized exception
This is how the
applet functions:
From a determined
time to time, he reads the xml file from the "Xml" host directory(http://MyHost/MyDir/xml/) and with the
information in it he draws or not some controls on the applets
panel.
On my java.security
file, i have inserted this following line:
policy.url.3=file:/D:/Testes/Applets/wwwroot/UnifPol
Where
UnifPol is configured like that:
grant codeBase "http://MyHost/MyDir/-" {
permission java.io.FilePermission "<<ALL FILES>>",
"read";
};
I have
installed the java plugin for Internet Explorer and the applet tag of the html
file have the follow parameters:
codebase=MyInitClass.class archive=MyJar.jar,
jdom.jar
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???
thanks,
Leonardo Klarmann Porto
Analista de Sistemas - GDes
Spin Engenharia de Automação
Ltda