I am starting JOSM using the following script:
The update works, the running itself works, but all preferences are saved to C:UsersMyNameAppDataRoaming despite environment variable being set to APPDATA. I looked into the source code of JOSM and on the first look it seems like asking for the correct environment variable. Why does it not work? Background: I want to have JOSM in a folder together with everything, however I do not want to install java on a flash drive and run it from there ... Edit: If anyone is interested this is the result so far (updates josm only if needed, keeps all settings within own folder, starts josm and tracerserver (only relevant for the Czech Rep.)
|
You can also pass the preferences folder on the command line. Assuming a subfolder of "JosmTestedSettings" - java.exe -Xmx1024M -jar josm-tested.jar -Djosm.home="./JosmTestedSettings" |
Found the problem, it has to be set to |