#3216 closed defect (duplicate)
JavaWS does not work
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core Webstart | Version: | tested |
Keywords: | webstart | Cc: | richardbrinkman@… |
Description (last modified by )
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.
Attachments (0)
Change History (7)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
I don't see the sense in this change. JOSM has a wrapper class JOSM. And the webstart works also. I assume the bug reporter did somehow compile an own version which missed the JOSM wrapper.
The wrapper is used to have clean program name on some systems.
comment:3 by , 16 years ago
What information, other than the error trace, the way I invoked javaws and my Java version, do you want to know?
Maybe that it runs with other Java implementations like the Windows version or the SUN release, but not with the linux version of OpenJDK 1.6.0.
comment:4 by , 16 years ago
Keywords: | webstart added |
---|
comment:5 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | needinfo → closed |
comment:7 by , 5 years ago
Component: | Core → Core Webstart |
---|---|
Description: | modified (diff) |
AFAIK, josm.jnlp wasn't in the SVN yet. I've added it in r1931 but I didn't apply the suggested changes yet. Somebody with access to http://josm.openstreetmap.de/download will have to do it and test it.