[[TranslatedPages]] = Download = == Overview == || ||= OS Independent =||= [http://www.java.com/en/download/faq/java_webstart.xml Web Start] =||= Windows =||= Mac OS X =||= Ubuntu, … =|| ||= **tested** [[Version(tested)]] =|| **[/josm-tested.jar jar ]** || [/download/josm.jnlp jnlp] || [/download/windows/josm-setup.exe setup.exe] ([wiki:USB_Stick portable]) || [/download/macosx/josm-macosx.zip package.zip] || ''[#Ubuntu see below]'' || ||= latest [[Version(latest)]] =|| [/josm-latest.jar jar] || [/download/josm-latest.jnlp jnlp] || || || ''[#Ubuntu see below]'' || ||= older =|| [/download/ download/] || || || || || * **Which version should I use?** (see also: [wiki:Releases release system]) * ''tested'' is released approx. monthly and shouldn't contain severe bugs * ''latest'' is released daily, may have more errors * If possible, use the Web Start version in order to automatically update. ---- * **Note that there are fairly regular updates, so always try running a recent version (and also recent plugins).** * Access [/download/josm.jnlp JOSM-WebStart] without installation * Download the **[/josm-tested.jar tested JOSM ]** version [[Version(tested)]] * Download the [/download/windows/josm-setup.exe Windows JOSM installer] version [[Version(windows)]] * Download the [/download/macosx/josm-macosx.zip Mac OS X JOSM package] version [[Version(macos)]] * Prepare a [wiki:USB_Stick USB flash drive] to use JOSM on any foreign Windows machine. * For download scripts use version check for [/latest latest] and [/tested tested] (or [/version both]) to reduce download bandwith * If download size is an issue for you, you may append `?lang=..` to the download link for both releases to strip all unused translations (e.g. `?lang=de` would download JOSM in German language only). == Development Version == * Download the **[/josm-latest.jar latest JOSM]** version [[Version(latest)]] (may have more errors than "tested", be careful with this one). == Applet == * Try **[/applet JOSM applet]** after reading the [wiki:Applet applet description]. == Source == * Get the source: * From the official Subversion repository (recommended): {{{svn co http://josm.openstreetmap.de/svn/trunk}}} * From the unofficial [http://github.com/openstreetmap/josm GitHub mirror]: {{{git clone git://github.com/openstreetmap/josm.git}}} * From the official OSM Subversion repository (including plugins): {{{svn co http://svn.openstreetmap.org/applications/editors/josm josm}}} == Ubuntu repository ==#Ubuntu The repository for Ubuntu contains two packages: {{{josm}}}:: ''The tested version''[[br]] Replaces the package from the official Ubuntu repository. {{{josm-latest}}}:: ''The development version (nightly build)''[[br]] Can be installed parallel to the {{{josm}}} package. The default preference folder is {{{~/.josm-latest}}}. === Installation === Depending on your Ubuntu-Version, add one of the following lines to your {{{/etc/apt/sources.list}}}: {{{ deb http://josm.openstreetmap.de/apt lucid universe deb http://josm.openstreetmap.de/apt natty universe deb http://josm.openstreetmap.de/apt oneiric universe deb http://josm.openstreetmap.de/apt precise universe }}} **Note**: You can just run "{{{lsb_release -c}}}" in a terminal to get the proper codename. Download and register the public key: {{{ wget -q http://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - }}} Now refresh your sources {{{ sudo apt-get update }}} and install: {{{josm}}}:: (You can skip the first line if you haven't installed these packages before.) {{{ sudo apt-get remove josm josm-plugins sudo apt-get install josm }}} {{{josm-latest}}}:: {{{ sudo apt-get install josm-latest }}} === useful options === If JOSM runs out of memory, you can increase the maximum size of allocated memory (in megabytes - max ±1.5GB for 32bit java, system dependent): {{{ JAVA_OPTS="-Xmx400M" josm }}} Start with a different preference folder: {{{ JAVA_OPTS="-Djosm.home=$HOME/.josm-tmp" josm }}} === VM selection on Windows x64 === For Windows, beware that some browsers may install their own JRE only in 32 bit mode, but may also install their version of the Javawebstart tool somewhere else with different file associations. This may cause your JNLP to start with this alternate JRE becaue it runs the wring version of Javawebstart which only supports the 32 bit VM, and sometimes built with a restricted support for VM options, and a max VM size not exceeding 256MB. Check for example if there's no other javawebstart in \Windows\SysWow64. You should not need it (the Java control panel will not detect it) and could safely delete it. Perfom cleanup and only keep the latest version of the JRE (1 for the 32-bit mode, another one for the 64-bit mode). For shortcuts created on the desktop for JNLP and running the Javawebstart launcher (from \windows\system32), make sure to pass VM parameters prefixed with -J and no intermediate space before the VM option. If you have installd bith the 32-bit and 64-bit version, you should pass the option "-d64" if you want to select the preferred the 64-bit VM. Note that some Oracle documentation pages indicates the option "-D64" with the incorrect capitalization!) Example of an edited commandline for the shortcut created on the windows desktop after running JOSM just once from the JNMP and exiting: {{{ C:\Windows\System32\javaws.exe -J-d64 -Xmx=2048m -localfile -J-Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp "C:\Users\\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\73117f8" }}} You don't need to change the end of the command line with the snipped parts here. Just check the path for javaws.exe and add options "-J-d64" for the 64-bit mode needed to work with large OSM datasets, and "-Xmx=2048m" to increase the VM size (to 2GB here).