Changeset 13233 in josm


Ignore:
Timestamp:
2017-12-23T17:44:41+01:00 (6 years ago)
Author:
Don-vip
Message:

see #11924 - Restart doesn't work on Java 9 WebStart. The command line includes jdk.plugin/sun.plugin2.main.WebStart as main class, but this is translated to jdk.plugin.sun.plugin2.main.WebStart and results in a (silent) ClassNotFoundException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r13206 r13233  
    158158                cmd.add("-cp");
    159159                cmd.add('"' + System.getProperty("java.class.path") + '"');
    160                 cmd.add(mainCommand[0]);
     160                cmd.add(mainCommand[0].replace("jdk.plugin/", "")); // Main class appears to be invalid on Java WebStart 9
    161161            }
    162162            // add JNLP file.
Note: See TracChangeset for help on using the changeset viewer.