Changes between Version 32 and Version 33 of Help/CommandLineOptions
- Timestamp:
- 2019-02-21T11:39:58+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/CommandLineOptions
v32 v33 1 1 [[TranslatedPages]] 2 2 = Command Line Options = 3 {{{#!comment4 No table of content. Instead the first paragraph introduces into the problem and offers internal links to the headings.5 }}}6 Three groups of command line options affect JOSM.7 The [#Programarguments Program arguments⤓] directly controls the program.8 The [#Javaoptions Java options⤓] affect the Java environment.9 Because Program arguments can be encapsulated by Java options the [#Examples examples⤓] are joint for both of them.10 Only involved in Web Start are the [#run-options run-options⤓].11 The last section deals with [#Otheroptions other options⤓] used in the Help.12 3 4 Four types of command line options affect JOSM: 5 * The [#Programarguments Program arguments⤓] directly control JOSM. They are called ''args'' by Oracle. 6 * The [#Javaoptions Java options⤓] affect its environment (JVM) and are sometimes named ''VM arguments''. 7 * Only involved in Web Start are the [#run-options rRun-options⤓]. 8 * Some [#Otheroptions Other options⤓] for diagnostics and launchers. 13 9 14 10 {{{ … … 21 17 }}} 22 18 19 The [wikitr:/Help/Action/ShowStatusReport Status Report] lists the given Program arguments and Java options in its second section. 20 Some [#Examples examples⤓] for both of them are shown below. 21 As usual in all four types the arguments are separated by space from each other. 23 22 24 == =Program arguments===#Programarguments23 == Program arguments ==#Programarguments 25 24 26 Also called ''Post jar arguments'' here or ''args'' by Java publishers. 25 The first argument can be a **command** for JOSM to make it work autonomous. 26 If JOSM can't recognize the first argument as command, then `runjosm` is assumed as default. 27 27 28 The firstargumentis seen as ''command'' byJOSM.The possible commands are `runjosm` for normal launch (default), `render` for generating an image file and `project` converting coordinates. If JOSM can't recognize a command the default is assumed.29 30 The following arguments are ''options'' for JOSM. They are separated by spaces. They can be URLs, filenames, coordinates, simple options and option=argument pairs. Thecomplete list of commands and options is shown below:28 The remaining arguments are **options** for JOSM. 29 They can be URLs, filenames, coordinates, simple options and option=value pairs. 30 The complete list of commands and options is shown below: 31 31 32 32 {{{ … … 58 58 --language=<language> Set the language 59 59 --version Displays the JOSM version and exits 60 --debug Print debugging messages to console60 --debug or --trace Print debugging messages to console 61 61 --skip-plugins Skip loading plugins 62 62 --offline=[osm_api,][josm_website,][all] Disable access to the listed resources … … 66 66 The arguments `--download`, `--downloadgps` and `--selection` are processed in this order. 67 67 The value `<url-to-xml>` can point to a local file with `file:relative/path/name.xml`. 68 More verbose than --debug is the `--trace` option.69 68 The items in the `--offline` value are separated by comma. 70 69 71 70 72 == =Java options===#Javaoptions71 == Java options ==#Javaoptions 73 72 74 The Java options are also ''JOSM JVM options'' called here or ''VM arguments'' in the [wiki:/Help/Action/ShowStatusReport Status Report]. In that report you can see the invoked Program Arguments and below the VM arguments. They control the Java virtual machine [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html (JVM)] and can set [https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html properties] inside it. JOSM reads some of them, for example `josm.home` and `user.language`.73 They control the Java virtual machine [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html (JVM)] and can set [https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html properties] inside it. JOSM reads some of them, for example `josm.home` and `user.language`. 75 74 {{{ 76 75 java options: … … 89 88 }}} 90 89 91 The `-Xmx...m` option may be useful when [wiki:/Download#Outofmemory Out of Memory] errors arise. 90 The `-Xmx...m` option may be useful when [wikitr:/Download#Outofmemory Out of Memory] errors arise. 92 91 If you set a common directory with `Djosm.home` then JOSM will create the subdirectories ./autosave, ./cache and ./validator. 93 92 If a value has spaces, then enclose it in quotation marks like `"josm dev"`. … … 95 94 Which [https://msdn.microsoft.com/de-de/library/windows/desktop/dd317756%28v=vs.85%29.aspx code page] is used shows `chcp⏎` in the terminal. 96 95 97 === Examples ===#Examples 98 Examples for the Program arguments and Java options in action: 96 [=#Examples **Examples**] 99 97 {{{ 100 98 #!sh … … 115 113 java -Xmx1024m -Duser.language=fr -jar josm.jar 116 114 # 117 # Do not get disturbed by phoning homeand log debugging info118 java -verbose -jar josm-latest.jar --set=message.notifier.enabled=false --debug >WhatsUp.txt 115 # Log debug info and do not get disturbed by JOSM phoning home 116 java -verbose -jar josm-latest.jar --set=message.notifier.enabled=false --debug >WhatsUp.txt 119 117 }}} 120 118 121 119 122 == = run-options===#run-options123 The run-options followthe `javaws` command. They control the Web Start mechanism andthe environment for the JVM.120 == Run-options ==#run-options 121 The run-options are used by the `javaws` command. They control the Web Start mechanism and can encapsulate Java options. 124 122 {{{ 125 123 -offline Allows to Web Start JOSM without internet access … … 129 127 130 128 The `-J` run-option takes its part behind the J letter and supplies that as Java option. 131 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. 129 The [wikitr:/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. 132 130 133 === Other options ===#Otheroptions 134 The `javaws` command on all systems and the Launcher `josm.exe` aka [http://launch4j.sourceforge.net/docs.html#Runtime_options Launch4j] on MS Windows have some diagnostic options. 131 == Other options ==#Otheroptions 132 The `javaws` command has some control options on all systems. 133 On [wikitr:/Download#Mswindowswrapper MS Windows] only the Launcher `josm.exe` aka [http://launch4j.sourceforge.net/docs.html#Runtime_options Launch4j] may give some debug info (needs 64-bit Java on 64-bit Windows). 135 134 {{{ 136 135 #!sh 136 # Control options: 137 137 javaws -viewer Shows the Cache Viewer in the Java Control Panel 138 138 # Allows to opens the Java Control Panel from the command line. … … 143 143 # javaws -Xclearcache on OpenJDK 144 144 145 146 # On MS Windows: 145 147 josm.exe --j4l-debug Tries to write a launch4j.log to current directory 146 148 josm.exe --j4l-dont-wait Ends the wrapper after invoking JOSM. 147 148 149 }}} 149 150 The `-clearcache` option and clearing the cache via the Java Control Panel will both delete JNLP based icons from the Desktop. The JOSM icon will be gone if it was placed as result of a click in a web browser on a jnlp-file.
