| 85 | | Just click on the jar-file. |
| | 85 | 1.) If you have downloaded "josm-latest.jar" you can start JOSM by clicking on the josm-latest.jar file in the MacOS Finder (you might get the warning that you are about to open a file from the internet - just accept). |
| | 86 | |
| | 87 | This way to start JOSM should be sufficient in most cases. |
| | 88 | |
| | 89 | 2.) However, if you need to start it up with additional Java parameter(s) (e.g. -Xmx512M) you can also use the MacOS "Terminal" and start JOSM (Java) manually: |
| | 90 | |
| | 91 | Start the "Terminal" application (e.g. by typing "Terminal" into the Spotlight search) |
| | 92 | |
| | 93 | Now you have two options |
| | 94 | |
| | 95 | a.) type in the following command and press "Enter" to start JOSM without any special java options (same result like clicking in the Finder): |
| | 96 | {{{ |
| | 97 | java -jar FOLDER/josm-latest.jar |
| | 98 | }}} |
| | 99 | Whereas "FOLDER" should be replaced by the name of the folder you have josm-latest.jar downloaded to. If you have downloaded it to the standard MacOS "Download" Folder it would look like: |
| | 100 | {{{ |
| | 101 | java -jar Download/josm-latest.jar |
| | 102 | }}} |
| | 103 | |
| | 104 | b.) to use additional java options just add them the FOLDER/josm-latest.jar |
| | 105 | |
| | 106 | If you for example have experienced the "Out of memory" warning (e.g. trying to load geo-tagged photos to JOSM) you would start JOSM like this: |
| | 107 | {{{ |
| | 108 | java -Xmx256M -jar FOLDER/josm-latest.jar |
| | 109 | }}} |
| | 110 | |
| | 111 | This would allow JOSM to use up to 256 MB of RAM (memory). The java option "-Xmx256M" set's the maximum Java heap size to 265 MB. You are free to replace -Xmx256M by any number appropriate for your system (e.g. -Xmx512M or even -Xmx1024M). |