[OSM-dev] java selfupdate

Stefan Baebler stefan.baebler at gmail.com
Thu May 24 07:52:12 BST 2007

Chris Fleming wrote:
> The best way to do this would be through java webstart...  
> (http://java.sun.com/products/javawebstart/overview.html)
I like the idea, so I wrote the attached josm.jnlp file, added mime type 
to my local apache
     AddType application/x-java-jnlp-file .jnlp
clicked on the file in my web browser. It got recognized as an Java 
application, tried to launch, but failed at MainApplication.java, line 
64, some issue with permissions (stacktrace below*). It seems that code 
needs to be modified to require less permisions (not using local files, 
becoming less useful).

Otherwise, adding
it complained that jar needs to be signed for that.

Hope it helps.


*full stacktrace of the first exception:
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission setDefaultUncaughtExceptionHandler)
	at java.security.AccessControlContext.checkPermission(Unknown Source)
	at java.security.AccessController.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.Thread.setDefaultUncaughtExceptionHandler(Unknown Source)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:64)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: josm.jnlp
Type: application/x-java-jnlp-file
Size: 838 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070524/f268c833/attachment.jnlp>

More information about the dev mailing list