[[TranslatedPages]] [[PageOutline(2-3,Table of Contents)]] = Download = This page provides basic JOSM installation steps and troubleshooting information. To start working with JOSM please see the [wiki:Introduction] and the [wiki:Help] pages. And for very complex issues see [wiki:InstallNotes Installation Notes]. == Recommended options == [[Image(source:trunk/images/openlocation.png, valign=middle, link=download/josm.jnlp )]] **Launch [/download/josm.jnlp josm.jnlp]** (newest tested version) [[br]] Recommended version, all platforms, automatic update to the newest ''tested version'' monthly ([wiki:#Troubleshootingjnlplink how to launch]).[[br]] [[br]] [[Image(source:trunk/images/download.png, valign=middle, link=)]] **Download [/josm-tested.jar josm-tested.jar]** (tested version [[Version(tested)]]) [[br]] All platforms ([wiki:Download#Troubleshootingjarfile how to start]). [[br]] == All download options ==#Moredownloadoptions Every [/roadmap month] the team of JOSM [wiki:Releases releases] a **tested version** for download. The MS Windows and Apple Mac variants are built on this tested version. When you click on josm.jnlp to launch JOSM you will always get the newest tested version. Java's [wiki:InstallNotes#Webstart Web Start] is the mechanism behind this. [=#DevelopmentVersion] Every [/log/josm/?verbose=on&limit=20 night] the build systems generate a **latest version**. These versions might have severe errors. But mostly they work well, too. For the latest version is also a Web Start variant available. ||= Version =||= OS Independent[[br]]Download =||= OS Independent[[br]]Web Start =||= Windows =||= Apple Mac =||= Ubuntu, Debian… =||= openSUSE =|| || tested [[Version(tested)]] || \ || [/josm-tested.jar] || \ || [/download/josm.jnlp josm.jnlp] || \ || [/download/windows/josm-setup.exe setup.exe][[br]]''([wiki:USB_Stick portable])'' || \ || [/download/macosx/josm-macosx.zip package.zip][[br]]''([#MacOSerrors see below])'' || \ || ''[#Ubuntu see below]'' || \ || ''[#openSUSE see below]'' || || latest[[br]][[Version(latest)]] || \ || [/josm-latest.jar] || \ || [/download/josm-latest.jnlp latest.jnlp] || || || ''[#Ubuntu see below]'' || || ||= older =|| [/download/ download/] || || || || || || When running scripts please first check on [/latest latest], [/tested tested] or [/version both] to reduce download bandwidth. ** Strip translations **[=#Striptranslations] \\ If download size is an issue, smaller files of JOSM tested are available. For downloads containing only one translation append [/josm-tested.jar?lang=en ?lang=en] to the URL. Replace `en` with the [wiki:/TracLanguages language code] you want (lowercase first character, supported languages only). You can further reduce the file size by stripping the signing information off with appending [/josm-tested.jar?lang=en&unsigned=1 ?unsigned=1]. == Repositories == === openSUSE ===#openSUSE The 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 ===#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 from the archives [https://josm.openstreetmap.de/apt/pool/universe/j/josm/ for josm] aka josm-tested and [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 trusty universe deb https://josm.openstreetmap.de/apt xenial universe deb https://josm.openstreetmap.de/apt artful 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 (you may need to install `sudo apt-get install apt-transport-https`) {{{ #!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 }}} == Troubleshooting == === Java ===#Java [=#Doubleclickonafiledoesnothing] When you double-click on a jar file and nothing happens in most cases this means Java isn't installed. JOSM is tested and developed with Oracle JVM, therefore we recommend to get Java from their [https://www.java.com/en/download/manual.jsp manual download] page. Mind your systems architecture (32 or 64 bit) when [https://www.java.com/en/download/faq/java_win64bit.xml choosing] the installation. Java 64 bit is recommended for JOSM. Please avoid the page java.com/en/download because its automatic detection may fool you. You do **not** need a Java-Plugin and you do **not** need to activate Java in your web browser to run JOSM. For further information visit the [InstallNotes Installation Notes] and [https://www.java.com/en/download/help/troubleshoot_java.xml Oracles troubleshooting] page. ==== Java Test ==== [=#Troubleshootingjarfile] Checks to see why JOSM is not starting, examples are for MS Windows. 1. Download [/josm-tested.jar josm-tested.jar] to your desktop. 1. Open a Command Prompt aka Terminal 1. Type `cd %homepath%\Desktop`⏎ 1. Type `java -version `⏎ Three lines with the version data should appear. When you see something else then Java is not properly installed. 1. Type `java -jar josm-tested.jar`⏎. Now JOSM should run, started from the [wiki:/Help:CommandLineOptions Command Line]. 1. Quit JOSM. 1. Type `josm-tested.jar`⏎. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files. === Web Start === [=#Troubleshootingjhlplink] Launching JOSM via Web Start has many more error causes than the traditional way with first downloading a jar file and afterwards starting it. So please complete the [#JavaTest Java Test] above before investigating [#WebStartTest Web Start Test] below or further [https://www.java.com/en/download/faq/java_webstart.xml issues]. ==== Web Start Test ==== 1. Download [/josm-tested.jar josm.jnlp] to your desktop. 1. Open a Terminal and move to the Desktop as above 1. Type `javaws josm.jnlp`⏎. This should initially download JOSM, serve a security dialog and then launch JOSM. === Virtual Machine ===#Troubleshootingjvm ==== Out of memory ==== For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure an [[Help/CommandLineOptions]] -Xmx memory size] that supports more JOSM plugins and other JOSM editing features. On the other hand, slow machines with few memory resources, can be stabilized by restricting JOSM memory use. for example `-Xmx256m` or `-Xmx1536m`. Nowadays it is seldom needed because available RAM on computers has grown. Wrongly chosen values can decrease JOSM performance. See affecthave enough RAMOn current systems part of the download option is optional. https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI ==== VM selection ====#VMselectiononWindowsx64 On current versions of MS Windows by default Java is installed mainly in the `C:\Program Files\Java\` directory. Additional parts are placed in `C:\Program Files\Oracle\Java\`. There is a `.\javapath\` directory as target for the PATH environment variable. It is the home for the three virtual files `java.exe`, `javaw.exe` and `javaws.exe`. This files are symbolic links form the current Java installations. On older versions of 64 bit Windows sometimes the 32 bit mode JRE was additionally installed. Also some browsers brought their own JVM with limited capabilities. In those cases a Web Start from the browser would not use your Java installation but that from the browser. Check that there's no other javawebstart in {{{\Windows\SysWow64}}}. The Java control panel will not detect it and you can safely delete it. Perfom cleanup and only keep the latest versions of each JRE (One or the 32-bit mode, another one for the 64-bit mode). For shortcuts created on the desktop for JNLP and running the Javawebstart launcher , 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 javaws.exe -J-d64 -J-Xmx2048m localfile -J-Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp "C:\Users\\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\73117f8" }}} === MacOS Errors === [=#MacOSXMountainLionErrors] {{{ #!comment old section title, keeping as anchor for old links }}} [[Image(#8787:damaged_josm_app.png,align=right,margin-top=-35,margin-left=30)]] If you get an error saying "'JOSM.app' is an application downloaded from the internet." you can bypass this by **right-clicking on JOSM.app** or josm.jnlp and selecting 'open'. You should then see the same message but this time with an option to "Open" regardless. This is only necessary on the first run of JOSM. If you get an error saying "'JOSM.app' is damaged and can't be opened. You should move it to the Trash", then you need to temporarily disable Gatekeeper. Open System Preferences and the 'Security & Privacy' options. Set 'Allow applications downloaded from:' to 'Anywhere'. If that radio button is missing from the Security & Privacy preferences panel, the following may be entered using the Terminal window to make it appear: [[Image(SecurityPrivacy.png)]] {{{ sudo spctl --master-disable }}} === Known issues === Not closed issues about ...: * [https://josm.openstreetmap.de/query?status=!closed&type=defect&keywords=~java Java issues] - some of the bugs lead to blockers in Oracle JVM (covered at [[JavaBugs]]). * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~linux&order=priority Linux] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~ubuntu&order=priority Ubuntu] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~macos&order=priority MacOS] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~windows&order=priority Windows]