Changes between Version 41 and Version 42 of Help/CommandLineOptions
- Timestamp:
- 2021-01-19T10:52:03+01:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/CommandLineOptions
v41 v42 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 * Involved in Web Start and diagnosis are the [#run-options Run-options⤓].9 * The [#run-options Run-options⤓] are involved in WebStart. Some are for diagnosis and import. 10 10 * Some [#Otheroptions Other options⤓] for helper programs. 11 11 … … 13 13 #!sh 14 14 # Running a jar 15 java [Java options] -jar josm -tested.jar [Program arguments]15 java [Java options] -jar josm.jar [Program arguments] 16 16 17 17 # Launch a Web Start … … 19 19 }}} 20 20 21 The [wikitr:/Help/Action/ShowStatusReport Status Report] lists the given Program arguments and Java options in its second section.21 The [wikitr:/Help/Action/ShowStatusReport Status Report] from the Help menu lists the given Program arguments and Java options. 22 22 Some [#Examples examples⤓] for both of them are shown below. 23 As usual the arguments are separated by space from each other. 23 24 **Note:** The term {{{josm.jar}}} is a common abbreviation for the file names ''josm-tested.jar'' and ''josm-latest.jar''. 25 The name ''josm.jnlp'' also stands for ''josm-latest.jnlp''. 26 As usual the command line arguments are separated by space from each other. 27 24 28 25 29 == Program arguments for JOSM ==#Programarguments … … 50 54 --geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument 51 55 [--download=]minlat,minlon,maxlat,maxlon Download the bounding box 52 [--download=]<URL> Download the location at the URL (with lat=x&lon=y&zoom=z)53 [--download=]<filename> Open a file (any file type that can be opened withFile/Open)56 [--download=]<URL> Download the location at the OSM-style URL 57 [--download=]<filename> Open a file (any type suitable for File/Open) 54 58 --downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS 55 --downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z)as raw GPS59 --downloadgps=<URL> Download the location at the URL as raw GPS 56 60 --selection=<searchstring> Select with the given search 57 61 --[no-]maximize Launch in maximised mode … … 66 70 --version Displays the JOSM version and exits 67 71 68 --debug Print debug ging messages toconsole72 --debug Print debug info on Mapview and stdout (console) 69 73 70 74 --skip-plugins Skip loading plugins … … 106 110 When the non-ASCII characters in the command prompt are scrambled, use `-Dfile.encoding=Cp850` to receive text from Java in another [https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html code page]. 107 111 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. 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`112 For UTF-8 on Windows, invoke `chcp 65001` in the Windows terminal window before launching JOSM using `java -Dfile.encoding=UTF-8 -jar josm.jar` 109 113 110 114 [=#Examples **Examples for JOSM runjosm options and Java options**] … … 112 116 #!sh 113 117 # Load three files 114 java -jar josm -tested.jar track1.gpx BigBen.jpg "london data.osm"118 java -jar josm.jar track1.gpx BigBen.jpg "london data.osm" 115 119 # Download from OSM according to an URL with zoom and coordinates 116 java -jar josm -tested.jar https://www.openstreetmap.org/#map=19/51.51/-0.135120 java -jar josm.jar https://www.openstreetmap.org/#map=18/51.501/-0.124 117 121 # Download a bounding box and select every element matching a string 118 java -jar josm -tested.jar 51.505,-0.14,51.515,-0.13--selection="Piccadilly Circus"122 java -jar josm.jar 51.500,-0.126,51.502,-0.122 --selection="Big Ben" 119 123 # 120 124 # Set directory for JOSM according to a property from the operating system 121 java -Djosm.pref=$XDG_CONFIG_HOME -jar josm -tested.jar125 java -Djosm.pref=$XDG_CONFIG_HOME -jar josm.jar 122 126 # Quotations for a value with space and show JOSMs GUI in English 123 java -Djosm.dir.name="josm dev" -jar josm -latest.jar --language=en124 # Set the common directory in a sub-subdirect roy below the active command prompt125 java -Djosm.home=biketour2017/london -jar josm -tested.jar126 # More memory in the Canadian variant of an English spoken environment127 java -Xmx1024m - Duser.language=en -Duser.country=CA-jar josm-latest.jar127 java -Djosm.dir.name="josm dev" -jar josm.jar --language=en 128 # Set the common directory in a sub-subdirectory below the active command prompt 129 java -Djosm.home=biketour2017/london -jar josm.jar 130 # More memory and without phoning home 131 java -Xmx1024m --set=message.notifier.enabled=false -jar josm.jar 128 132 # 129 # Log debug infoand do not get disturbed by JOSM phoning home130 java - verbose-jar josm-latest.jar --set=message.notifier.enabled=false--debug>WhatsUp.txt133 # Start in an English environment and log debug info plus messages from stderr 134 java -Duser.language=en -jar josm.jar --debug 1>logfile.txt 2>&1 131 135 }}} 132 136 133 137 134 138 == Run-options for Java Web Start ==#run-options 139 135 140 The run-options are read by the `javaws` command. They control the Web Start mechanism, can encapsulate Java options and can diagnose Java. 136 141 {{{ … … 256 261 }}} 257 262 258 On this page 'josm.jar' is short for one of the releases josm-tested.jar or josm-latest.jar.259 263 260 264 == See also ==