--On 25. September 2008 12:24:44 -0700 Bino George <email@hidden> wrote:
We believe we have isolated the pattern that is broken with the 1.5.0_16
webstart. This problem happens
when you try to get a new URL to a resource using an existing URL as
shown below :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = new URL(resourceBase, "anotherfile");
The workaround it to use Class.getResource instead :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = MyClass.class.getResource("anotherfile");
This works reliably on all platforms and all versions.
thanks for that, but I'm not sure how that applies in my case. Here's the
code:
if (SettingsPersistence.isWebStart()) {
logger.info("Running in
WebStart");
System.setProperty("java.security.auth.login.config",
getClass().getClassLoader().getResource("UklanAdminGui.conf").toString());
} else {
logger.info("Not in WebStart");
It's been a while since we wrote that. Anyway, assuming the
System.setProperty() call is the relevant one, isn't that already doing
what you suggest we do?
Thanks, Sebastian
--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.
.:.:.:.Skype: shagedorn.:.:.:.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden