[[TranslatedPages]] = Download = This [wiki:Portals portal] provides basic JOSM installation steps and troubleshooting information. Most likely, you want to [wiki:Help learn about JOSM features and access help portal] or read about [wiki:Introduction your very first edit in JOSM] afterwards. == Recommended options == * '''Launch [/download/josm.jnlp josm.jnlp] (version [[Version(tested)]])''' - recommended version, all platforms, automatic update ([#Troubleshootingjhlplink ''.jnlp link'' doesn't work for you?]) * '''Download [/josm-tested.jar josm-tested.jar] (version [[Version(tested)]])''' - all platforms ([wiki:Download#Troubleshootingjarfile not able to run a file?]). Additional memory and other tips covered at [[Help/CommandLineOptions]]. One of the two options above should work. Information below is optional and for troubleshooting. [[br]] [[br]] [[br]] [[br]] [[br]] [[br]] == More download options == ''Note that [/roadmap there are fairly regular updates], so always try running a recent version (and also recent plugins)''. || ||= OS Independent =||= [https://www.java.com/en/download/faq/java_webstart.xml Web Start] =||= Windows =||= Mac OS X =||= Ubuntu, … =||= openSUSE =|| ||= **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] ([#MacOSXerrors first run error]) || ''[#Ubuntu see below]'' || ''[#openSUSE see below]'' || ||= latest [[Version(latest)]] =|| [/josm-latest.jar jar] || [/download/josm-latest.jnlp jnlp] || || || ''[#Ubuntu see below]'' || || ||= older =|| [/download/ download/] || || || || || || === latest or tested or webstart === * ''tested'' - [wiki:Releases released approx. monthly and shouldn't contain severe bugs] * ''latest'' (development version) - [wiki:Releases released daily, may have more errors] * ''.jhlp link'' - If possible, use the Web Start version in order to '''automatically update'''. === Mirrors === ||'''url'''||'''location'''||'''speed'''||'''update frequency'''||'''comment'''|| ||http://josm.openstreetmap.de/download||Germany||up to 50mbit||instantly||main site|| ||http://gis-lab.info/programs/josm||Moscow,Russia||up to 50mbit||daily||downloads|| ---- [[PageOutline(2-5,Page Outline)]] * 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 == Troubleshooting == === Troubleshooting jar file === ==== Double click on a file does nothing ==== In most cases this means Java (JVM) wasn't installed. JOSM is tested and developed with Oracle JVM, therefore it is recommended to get it from java.com site. * https://www.java.com/en/download/ - main resource, usually Installation process goes without any problems * https://www.java.com/en/download/help/download_options.xml - additional steps for all systems * https://www.java.com/en/download/help/index_installing.xml?os=All+Platforms&j=8&n=20 - please narrow down your question at their help portal about questions during installation If at least one Java was installed, refer to pages: * https://www.java.com/en/download/help/troubleshoot_java.xml - it contains most common troubleshooting questions * https://www.java.com/en/download/help/ - this page contains "Top 8 Java Issues", one of them may be yours ==== Strip down unnecessary translations in .jar ==== If download size is an issue for you: * Append **?lang=…** to the download link address for both releases to strip unused translations (e.g. **?lang=de** will download JOSM in German language only). * **Note**: Use underscore to separate [[Translations|language codes]] with country code extensions, e.g. **?lang=en_GB** * Append **?unsigned=1** to strip the code signing information * When **lang** and **unsigned** are used the separation is a **&** sign like in **?lang=de&unsigned=1** 10786 .jar: 10.2M[[br]] 10786 .jar?lang=de: 8151k[[br]] 10786 .jar?lang=de&unsigned=1: 7688k === Troubleshooting jhlp link === Assuming, [wiki:Download#Doubleclickonafiledoesnothing JVM was already installed], read [https://www.java.com/en/download/faq/java_webstart.xml Web Start] help. === Troubleshooting JVM === ==== Out of memory ==== In more extensive edit sessions, you may get an "out of memory" error. To avoid this, the assigned memory can be increased with {{{-Xmx}}} option, see [[Help/CommandLineOptions]] for details. === Known and open issues in JOSM === Java issues: * https://josm.openstreetmap.de/query?status=!closed&type=defect&keywords=~java - some of the bugs lead to blockers in Oracle JVM (covered at [[JavaBugs]]). Linux: * https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~linux&order=priority Ubuntu: * https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~ubuntu&order=priority MacOS: * https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~macos&order=priority Windows: * https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~windows&order=priority == Possibly outdated content below == === Mac OS X errors === [=#MacOSXMountainLionErrors] {{{ #!comment old section title, keeping as anchor for old links }}} [[Image(#8787:damaged_josm_app.png,align=right,margin-top=-35)]] Since Mac OS 10.8 a error message may appear on your first attempt to run JOSM: * older versions: ''JOSM.app is damaged and can't be opened. You should move it to the Trash.'' * newer versions: ''JOSM.app can't be opened because it is from an unidentified developer.'' To open JOSM for the first time, right-click on JOSM.app and confirm the opening in the pop-up dialogs. This is only necessary on the first run of JOSM. === openSUSE repository === #openSUSE Tested version of JOSM is available in the Application:Geo repository. First add as root user in yast or with zypper the repository (replace the version in the URL with the one you are using): {{{ zypper ar -f http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.2 Application:Geo }}} Then simply install **josm** and **josm-fonts** package. === Ubuntu repository ===#Ubuntu This is a package repository primarily for Ubuntu. It should also work with other Debian based (especially Ubuntu based) distributions, but we do not actively test and maintain any distributions other than Ubuntu. [[BR]] Note: in addition to the regular procedure described below, older DEBs can be manually downloaded and clicked to be installed from the following directories: [https://josm.openstreetmap.de/apt/pool/universe/j/josm/ for josm] [https://josm.openstreetmap.de/apt/pool/universe/j/josm-latest/ for josm-latest] The repository 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 ==== Edit the package resource list {{{/etc/apt/sources.list}}}: {{{ #!sh sudo editor /etc/apt/sources.list }}} and add one of the following lines according to your Ubuntu-Version: {{{ deb https://josm.openstreetmap.de/apt lucid universe deb https://josm.openstreetmap.de/apt precise universe deb https://josm.openstreetmap.de/apt quantal universe deb https://josm.openstreetmap.de/apt raring universe deb https://josm.openstreetmap.de/apt saucy universe deb https://josm.openstreetmap.de/apt trusty universe deb https://josm.openstreetmap.de/apt utopic universe deb https://josm.openstreetmap.de/apt vivid universe deb https://josm.openstreetmap.de/apt wily universe deb https://josm.openstreetmap.de/apt xenial universe }}} Alternatively, this can be done with the following one-liner: {{{ echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null }}} For other Debian based distributions, add the following line: {{{ deb https://josm.openstreetmap.de/apt alldist universe }}} {{{#!comment ### below did not work on all systems and add the following line: ` deb https://josm.openstreetmap.de/apt VERSION universe ` }}} Download and register the [[/josm-apt.key|public key]]: {{{ #!sh wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - }}} Now refresh your sources {{{ #!sh sudo apt-get update }}} and install: {{{josm}}}:: (You can skip the first line if you haven't installed these packages before.) {{{ #!sh sudo apt-get remove josm josm-plugins sudo apt-get install josm }}} {{{josm-latest}}}:: {{{ #!sh sudo apt-get install josm-latest }}} === 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 because it runs the wrong version of Javawebstart which only supports the 32 bit VM, and sometimes is 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 can 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 installed both the 32-bit and 64-bit version, you should pass the option "{{{-d64}}}" if you want to select the preferred 64-bit VM. Note that some Oracle documentation pages indicate 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: {{{ #!sh C:\Windows\System32\javaws.exe -J-d64 -Xmx=2048m -localfile -J-Djnlp.application.href=https://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). == See also == * [[Source code]] * [wiki:InstallNotes#Running how to run] - possibly outdated help page