Opened 16 years ago

Last modified 6 years ago

#3216 closed defect

JavaWS does not work — at Initial Version

Reported by: anonymous Owned by: team
Priority: major Milestone:
Component: Core Webstart Version: tested
Keywords: webstart Cc: richardbrinkman@…

Description

If I start JOSM by "javaws http://josm.openstreetmap.de/download/josm.jnlp", I get the following exception:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.

at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:395)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:623)

Caused by: java.lang.NoSuchMethodException: JOSM.main([Ljava.lang.String;)

at java.lang.Class.getDeclaredMethod(Class.java:1954)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:374)
... 1 more

Caused by:
java.lang.NoSuchMethodException: JOSM.main([Ljava.lang.String;)

at java.lang.Class.getDeclaredMethod(Class.java:1954)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:374)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:623)

This error can be resolved by changing one line in the josm.jnlp file:
Change:
<application-desc main-class="JOSM"/>
into:
<application-desc main-class="org.openstreetmap.josm.gui.MainApplication"/>
I don't have an svn account for josm, so can somebody change this for me?

Used openJDK 1.6.0_0 (64 bits) on linux.

Change History (0)

Note: See TracTickets for help on using tickets.