Changes between Version 33 and Version 34 of Help/CommandLineOptions


Ignore:
Timestamp:
2019-02-27T12:42:48+01:00 (7 years ago)
Author:
Hb---
Comment:

minor

Legend:

Unmodified
Added
Removed
Modified
  • Help/CommandLineOptions

    v33 v34  
    7171== Java options ==#Javaoptions
    7272
    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`.
     73They 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 directly, for example `josm.home`. Others like `user.language` and `user.country` affect the default settings of the JVM which affect JOSM too.
     74
    7475{{{
    7576java options:
     
    9899#!sh
    99100# Load three files
    100   java -jar josm.jar track1.gpx BigBen.jpg "london data.osm"
     101  java -jar josm-tested.jar track1.gpx BigBen.jpg "london data.osm"
    101102# Download from OSM according to an URL with zoom and coordinates
    102   java -jar josm.jar https://www.openstreetmap.org/#map=19/51.51/-0.135
     103  java -jar josm-tested.jar https://www.openstreetmap.org/#map=19/51.51/-0.135
    103104# Download a bounding box and select every element matching a string
    104   java -jar josm.jar 51.505,-0.14,51.515,-0.13 --selection="Piccadilly Circus"
     105  java -jar josm-tested.jar 51.505,-0.14,51.515,-0.13 --selection="Piccadilly Circus"
    105106#
    106107# Set directory for JOSM according to a property from the operating system
    107   java -Djosm.pref=$XDG_CONFIG_HOME jar josm.jar
     108  java -Djosm.pref=$XDG_CONFIG_HOME -jar josm-tested.jar
    108109# Quotations for a value with space and show JOSMs GUI in English
    109   java -Djosm.dir.name="josm dev" -jar josm.jar --language=en
     110  java -Djosm.dir.name="josm dev" -jar josm-latest.jar --language=en
    110111# Set the common directory in a sub-subdirectroy below the active command prompt
    111   java -Djosm.home=biketour2017/london -jar josm.jar
    112 # More memory in a French spoken environment
    113   java -Xmx1024m -Duser.language=fr -jar josm.jar
     112  java -Djosm.home=biketour2017/london -jar josm-tested.jar
     113# More memory in the Canadian variant of an English spoken environment
     114  java -Xmx1024m -Duser.language=en -Duser.country=CA -jar josm-latest.jar
    114115#
    115116# Log debug info and do not get disturbed by JOSM phoning home