[Talk-de] JOSM WebStart
Fabian Schmidt
fschmidt at informatik.uni-leipzig.de
Fr Mär 13 10:04:06 UTC 2009
Am 13.03.09 schrieb Dirk Stöcker:
> Nein. Zugriffsprobleme. Das Applet hat momentan kein Recht die Plugins zu
> laden. Vielleicht findet sich jemand, der sich damit auskennt und behebt das.
> Ich habe nur die bereits existierende Vorlage zum laufen gebracht.
ich kenn mit nicht mit Java Web Start aus, aber vielleicht hilft
http://lopica.sourceforge.net/faq.html
iceryx reports: The classes I loaded with my own URLClassLoader didn't
have the same permissions as the classes loaded directly through Web
Start. So I included my own policy file in a jar to grant
java.security.AllPermissions to all codebases. Then in my main class, I
wrote:
URL policyUrl =
Thread.currentThread().getContextClassLoader().getResource("my.java.policy");
Policy.getPolicy().refresh();
This fixed it. I guess that when you give "all-permissions" to your Web
Start app, it assigns java.security.AllPermissions only to code loaded
from the Web Start codebase, but not to code from other codebases.
Changing the policy widened this permission to everything.
As another alternative you can also write your own Policy subclass
permitting everything and then call Policy.setPolicy() to turn it on.
Gruß, Fabian.
Mehr Informationen über die Mailingliste Talk-de