Changes between Version 40 and Version 41 of Help/CommandLineOptions
- Timestamp:
- 2021-01-18T00:57:21+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/CommandLineOptions
v40 v41 1 1 [[TranslatedPages]] 2 [[PageOutline]] 2 [[PageOutline(2)]] 3 3 4 4 = Command Line Options = … … 7 7 * The [#Programarguments Program arguments⤓] directly control JOSM. They are called ''args'' by Java. 8 8 * The [#Javaoptions Java options⤓] affect its environment (JVM) and are sometimes named ''VM arguments''. 9 * Only involved in Web Start are the [#run-options Run-options⤓].10 * Some [#Otheroptions Other options⤓] for diagnostics and launchers.9 * Involved in Web Start and diagnosis are the [#run-options Run-options⤓]. 10 * Some [#Otheroptions Other options⤓] for helper programs. 11 11 12 12 {{{ … … 16 16 17 17 # Launch a Web Start 18 javaws [ run-options] -J[Java option] josm.jnlp18 javaws [Run-options] -J[Java option] josm.jnlp 19 19 }}} 20 20 21 21 The [wikitr:/Help/Action/ShowStatusReport Status Report] lists the given Program arguments and Java options in its second section. 22 22 Some [#Examples examples⤓] for both of them are shown below. 23 As usual in all four typesthe arguments are separated by space from each other.24 25 == JOSM program arguments ==#Programarguments23 As usual the arguments are separated by space from each other. 24 25 == Program arguments for JOSM ==#Programarguments 26 26 27 27 The first argument can be a **command** for JOSM to make it work autonomous. 28 If JOSM can't recognize the first argument ascommand, then`runjosm`is assumedas default.28 The commands are `render`, `project` or `runjosm` as default. 29 29 30 30 The remaining arguments are **options** for JOSM. 31 31 They can be URLs, filenames, coordinates, simple options and option=value pairs. 32 The complete list of commands and options is shown below: 32 33 The options for runjosm are listed in the following. 34 At the bottom are the options for the commands [#Programargumentsrendering render⤓] and [#Programargumentsproject project⤓]. 33 35 34 36 {{{ … … 84 86 85 87 {{{ 86 javaoptions:87 -Djosm.dir.name=JOSM Change the JOSM directory name 88 -Djosm.pref=/PATH/TO/JOSM/PREF Set the preferences directory 89 Default: C:\Users\name\AppData\Roaming\JOSM 90 -Djosm.userdata=/PATH/TO/JOSM/USERDATA Set the user data directory 91 Default: /home/name/.local/share/JOSM 92 -Djosm.cache=/PATH/TO/JOSM/CACHE Set the cache directory 93 Default: <...> 94 -Djosm.home=/PATH/TO/JOSM/HOMEDIR Set the common directory for preferences, 95 user data and ./cache/. Lower precedence. 96 Will get overridden from specific setting. 97 -Xmx...m Set maximum Java heap size in megabytes. 98 May avoid Out-of-Memory errors. 88 Java system properties options: 89 -Djosm.dir.name=JOSM Change the JOSM directory name 90 -Djosm.pref=/PATH/TO/JOSM/PREF Set the preferences directory 91 Default: C:\Users\name\AppData\Roaming\JOSM 92 -Djosm.userdata=/PATH/TO/JOSM/USERDATA Set the user data directory 93 Default: /home/name/.local/share/JOSM 94 -Djosm.cache=/PATH/TO/JOSM/CACHE Set the cache directory 95 Default: <...> 96 -Djosm.home=/PATH/TO/JOSM/HOMEDIR Set the common directory for preferences, 97 user data and ./cache/. Lower precedence. 98 Will get overridden from specific setting. 99 -Xmx...m Set maximum Java heap size in megabytes. 100 May avoid Out-of-Memory errors. 99 101 }}} 100 102 … … 106 108 For UTF-8 on Windows, invoke `chcp 65001` in the Windows terminal window before launching JOSM using `java -Dfile.encoding=UTF-8 -jar josm-tested.jar` 107 109 108 [=#Examples **Examples**] 110 [=#Examples **Examples for JOSM runjosm options and Java options**] 109 111 {{{ 110 112 #!sh … … 130 132 131 133 132 == Java Web Start Run-options ==#run-options 133 The run-options are used by the `javaws` command. They control the Web Start mechanism and can encapsulate Java options. 134 {{{ 134 == Run-options for Java Web Start ==#run-options 135 The run-options are read by the `javaws` command. They control the Web Start mechanism, can encapsulate Java options and can diagnose Java. 136 {{{ 137 #!sh 138 # Control 135 139 -offline Allows to Web Start JOSM without internet access 140 141 # Encapsulate 136 142 -J<java option> Supplies the <java option> to the JVM 137 143 -J-Xmx1024m Here: Set maximum Java heap size to 1024 megabyte 138 }}} 139 140 The `-J` run-option takes its part behind the J letter and supplies that as Java option. 141 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. 142 143 The `javaws` command has some control options on all systems. 144 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). 145 {{{ 146 #!sh 147 # Control options: 144 145 # Diagnosis 148 146 javaws -viewer Shows the Cache Viewer in the Java Control Panel 149 147 # Allows to opens the Java Control Panel from the command line. … … 153 151 # by the 'Settings' button in the 'General' tab of the Java Control Panel. 154 152 # javaws -Xclearcache on OpenJDK 155 156 157 # On MS Windows: 153 }}} 154 155 The `-J` run-option takes its part behind the J letter and supplies that as Java option. 156 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. 157 158 The `javaws` command has some control options on all systems. 159 160 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. 161 162 == Other options ==#Otheroptions 163 164 The Launcher `josm.exe` aka [http://launch4j.sourceforge.net/docs.html#Runtime_options Launch4j] (only on [wikitr:/Download#Mswindowswrapper MS Windows]) may give some debug info. 165 {{{ 166 #!sh 158 167 josm.exe --j4l-debug Tries to write a launch4j.log to current directory 159 168 josm.exe --j4l-dont-wait Ends the wrapper after invoking JOSM. 160 169 }}} 161 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. 162 163 == JOSM rendering command line interface == 170 171 == Command line for Render and Project == 172 173 === JOSM rendering Programm arguments ===#Programargumentsrendering 164 174 165 175 {{{ … … 213 223 }}} 214 224 215 == JOSM projection command line interface ==225 === JOSM projection Programm arguments ===#Programargumentsprojection 216 226 217 227 {{{ … … 246 256 }}} 247 257 258 On this page 'josm.jar' is short for one of the releases josm-tested.jar or josm-latest.jar. 259 248 260 == See also == 249 261 * [wikitr:/Download#Troubleshooting Troubleshooting Java]