Changes between Version 25 and Version 26 of Help/CommandLineOptions


Ignore:
Timestamp:
2018-02-19T15:12:40+01:00 (6 years ago)
Author:
Hb---
Comment:

Added OOther options, Examples moved up

Legend:

Unmodified
Added
Removed
Modified
  • Help/CommandLineOptions

    v25 v26  
    55}}}
    66JOSM is affected by three groups of command line options.
    7 The [#Programarguments Program arguments] are most important and than the [#Javaoptions Java options]. Only involved in Web Start are the [#run-options run-options]. See [#Examples Examples]
     7The [#Programarguments Program arguments⤓] are most important and than the [#Javaoptions Java options⤓].
     8See the [#Examples examples⤓] for both of them.
     9Only involved in Web Start are the [#run-options run-options⤓].
     10The last section here deals with [#Otheroptions other⤓] options which are used somewhere in this help pages.
    811
    912{{{
     
    1518javaws [run-options] -J[Java option] josm.jnlp
    1619}}}
     20
    1721
    1822=== Program arguments ===#Programarguments
     
    8690If a value has spaces, then enclose it in quotation marks like `"josm dev"`.
    8791
    88 === run-options ===
    89 The run-options follow the `javaws` command. They control the Web Start mechanism and the environment for the JVM.
    90 {{{
    91   -offline                  Allows to Web Start JOSM without internet access
    92   -J<java option>           Supplies the <java option> to the JVM
    93   -J-Xmx1024m               Here: Set maximum Java heap size to 1024 megabyte
    94 }}}
    95 
    96 The `-J` run-option takes its part behind the J letter and supplies that as Java option.
    97 The [wiki:/Help/jnlpOptions jnlp-File] used by [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javaws.html Web Start] offers a second way to [https://docs.oracle.com/javase/8/docs/technotes/guides/javaws/developersguide/syntax.html  set options] for JRE and for the JOSM program directly.
    98 
    99 
    10092=== Examples ===
     93Examples for the Program arguments and Java options in action:
    10194{{{
    10295#!sh
     
    121114}}}
    122115
     116
     117=== run-options ===
     118The run-options follow the `javaws` command. They control the Web Start mechanism and the environment for the JVM.
     119{{{
     120  -offline                  Allows to Web Start JOSM without internet access
     121  -J<java option>           Supplies the <java option> to the JVM
     122  -J-Xmx1024m               Here: Set maximum Java heap size to 1024 megabyte
     123}}}
     124
     125The `-J` run-option takes its part behind the J letter and supplies that as Java option.
     126The [wiki:/Help/jnlpOptions jnlp-File] used by [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javaws.html Web Start] offers a second way to [https://docs.oracle.com/javase/8/docs/technotes/guides/javaws/developersguide/syntax.html  set options] for JRE and for the JOSM program directly.
     127
     128=== Other options ===#Otheroptions
     129The javaws command on all systems and the josm.exe on MS Windows have some additional [http://launch4j.sourceforge.net/docs.html#Runtime_options options].
     130{{{
     131#!sh
     132javaws -viewer            Shows the Cache Viewer in the Java Control Panel
     133# Allows to opens the Java Control Panel from the command line.
     134
     135javaws -clearcache        Removes all non-installed applications from the cache
     136# Equal to 'Delete Files and Applications' from the 'Temporary File Settings' invoked
     137# by the 'Settings' button in the 'General' tab of the Java Control Panel.
     138# javaws -Xclearcache on OpenJDK
     139
     140josm.exe --j4l-debug      Tries to write a launch4j.log to current directory
     141josm.exe --j4l-dont-wait  Ends the wrapper after invoking JOSM.
     142
     143}}}
     144Deleting temporary files will delete JNLP based icons from the Desktop too.
     145
     146
    123147=== See also ===
    124148* [wiki:Download#Troubleshooting Troubleshooting Java]