Changes between Version 25 and Version 26 of Help/CommandLineOptions
- Timestamp:
- 2018-02-19T15:12:40+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/CommandLineOptions
v25 v26 5 5 }}} 6 6 JOSM 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] 7 The [#Programarguments Program arguments⤓] are most important and than the [#Javaoptions Java options⤓]. 8 See the [#Examples examples⤓] for both of them. 9 Only involved in Web Start are the [#run-options run-options⤓]. 10 The last section here deals with [#Otheroptions other⤓] options which are used somewhere in this help pages. 8 11 9 12 {{{ … … 15 18 javaws [run-options] -J[Java option] josm.jnlp 16 19 }}} 20 17 21 18 22 === Program arguments ===#Programarguments … … 86 90 If a value has spaces, then enclose it in quotation marks like `"josm dev"`. 87 91 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 access92 -J<java option> Supplies the <java option> to the JVM93 -J-Xmx1024m Here: Set maximum Java heap size to 1024 megabyte94 }}}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 100 92 === Examples === 93 Examples for the Program arguments and Java options in action: 101 94 {{{ 102 95 #!sh … … 121 114 }}} 122 115 116 117 === run-options === 118 The 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 125 The `-J` run-option takes its part behind the J letter and supplies that as Java option. 126 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. 127 128 === Other options ===#Otheroptions 129 The 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 132 javaws -viewer Shows the Cache Viewer in the Java Control Panel 133 # Allows to opens the Java Control Panel from the command line. 134 135 javaws -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 140 josm.exe --j4l-debug Tries to write a launch4j.log to current directory 141 josm.exe --j4l-dont-wait Ends the wrapper after invoking JOSM. 142 143 }}} 144 Deleting temporary files will delete JNLP based icons from the Desktop too. 145 146 123 147 === See also === 124 148 * [wiki:Download#Troubleshooting Troubleshooting Java]