Changes between Initial Version and Version 1 of It:Download


Ignore:
Timestamp:
2023-04-22T17:53:32+02:00 (3 years ago)
Author:
mendem@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • It:Download

    v1 v1  
     1[[TranslatedPages(revision=204)]]
     2[[PageOutline(2-3,Tavola dei contenuti)]]
     3
     4== Questa pagina è una bozza, la traduzione è in corso ==
     5
     6= Scaricare =
     7
     8This page provides basic JOSM installation steps and troubleshooting information.
     9To start working with JOSM please see the [wikitr:/Introduction] and the [wikitr:/Help] pages.
     10And for very complex issues see [wikitr:/InstallNotes Installation Notes].
     11
     12== Opzioni raccommandate ==#Recommendedoptions
     13[[JOSMImage(openlocation, valign=middle, link=[download/josm.jnlp])]] **Start [/download/josm.jnlp josm.jnlp]** (versione testata più recente) \\
     14Versione raccomandata, tutte le piattaforme, aggiornamento automatico alla più recente ''versione testata'' con cadenza mensile ([#Webstart how to start]). \\ \\
     15
     16[[JOSMImage(download, valign=middle, link=[/josm-tested.jar])]] **Download [/josm-tested.jar josm-tested.jar]** (tested version [[Version(tested)]]) \\
     17Tutte le piattaforme ([#Java how to run]). \\ \\
     18
     19
     20== Tutte le opzioni di download ==#Moredownloadoptions
     21Every [/roadmap month] the team of JOSM [wikitr:/Releases releases] a **tested version** for download.
     22The MS Windows and Apple macOS variants are built on this tested version.
     23When you click on josm.jnlp to launch JOSM you will always get the newest tested version. Java's [wikitr:/InstallNotes#Webstart Web Start] is the mechanism behind this.
     24
     25[=#DevelopmentVersion]
     26Every [/log/josm/?verbose=on&limit=20 night] the build systems generate a **latest version**.
     27These versions might have severe errors. But mostly they work well, too.
     28For the latest version is also a Web Start variant available.
     29
     30||= =||||= **For all operating systems** =|||||||| ||= **Development** =||
     31||=**Versione** =||= **Web Start** =||= **Download** =||= **Windows** =||= **Apple macOS** =||= **Ubuntu, Debian…**  =||= **openSUSE** =||= **Jar / Javadoc / Source** =||
     32||**tested [[Version(tested)]]** ||  \
     33||  [/download/josm.jnlp josm.jnlp]  ||  \
     34||  [/josm-tested.jar]  ||  \
     35||  \\ [/download/windows/josm-setup.exe josm-setup.exe] \\ [/download/windows/josm-setup.msi josm-setup.msi] \\ [https://apps.microsoft.com/store/detail/josm/XPFCG1GV0WWGZX Microsoft Store]\\ ''([#Mswindowswrapper see below])''  ||  \
     36||  \\ [/download/macosx/josm-macosx.zip JOSM macOS .zip package] \\ ''or ([#macOS homebrew])''  ||  \
     37||  ''[#Ubuntu see below]''  ||  \
     38||  ''[#Opensuse see below]''  ||  \
     39||  [/nexus/content/groups/public/org/openstreetmap/josm/josm/ josm]:[[Version(tested)]]  ||
     40||**latest [[Version(latest)]]** || \
     41||  [/download/josm-latest.jnlp latest.jnlp]  ||  \
     42||  [/josm-latest.jar]  || || ||  \
     43||  ''[#Ubuntu see below]''  || ||  \
     44||  [/nexus/content/groups/public/org/openstreetmap/josm/josm/SNAPSHOT/ Use snapshots]  ||
     45||=''**older**'' =|| ||  \
     46||  [/download/ download/]  || ||  \
     47||  [https://github.com/openstreetmap/josm/releases automatic JOSM.app builds]  ||  \
     48||  [/apt/pool/universe/j/ pool/]  || ||  \
     49||  [/nexus/content/groups/public/org/openstreetmap/josm/josm/ tested versions]  ||
     50
     51When running scripts please first check on [/latest latest], [/tested tested] or [/version all] to reduce download bandwidth.
     52
     53** Strip translations **[=#Striptranslations]  \\
     54If download size is an issue, smaller files of the tested version are available. For downloads containing only English append [/josm-tested.jar?lang=en ?lang=en] to the URL. To include one translation replace `en` with the [wikitr:/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].
     55
     56
     57== Linux Repositories ==
     58=== JOSM's Debian based mainly for Ubuntu ===#Ubuntu
     59This is our own 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.
     60
     61The repository contains two packages:
     62* ''josm'' – Provides the tested version (stable). Replaces the package from the official repository of your distribution. The default JOSM directories name is set to `JOSM`.
     63* ''josm-latest'' – The latest version (nightly). Can be installed in parallel to the josm package, therefore the default JOSM directories name is set to `JOSM-latest`.
     64Both packages provide `/etc/default/josm` respectively `/etc/default/josm-latest` as config file for [wikitr:Help/CommandLineOptions#Javaoptions java options].
     65
     66In addition to the regular procedure described below, older DEBs can be manually downloaded from the [/apt/pool/universe/j/ archives].
     67
     68==== Installation ====
     69Edit the package resource list `/etc/apt/sources.list.d/josm.list`:
     70{{{#!sh
     71sudo editor /etc/apt/sources.list.d/josm.list
     72}}}
     73{{{#!comment
     74### below does not work on GNU Debian systems
     75`sudo $EDITOR /etc/apt/sources.list.d/josm.list`
     76}}}
     77
     78and add one of the following lines according to your Ubuntu-Version:
     79
     80{{{#!sh
     81deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt lunar universe
     82deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt kinetic universe
     83deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt jammy universe
     84deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt impish universe
     85deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt hirsute universe
     86deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt groovy universe
     87deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt focal universe
     88deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt eoan universe
     89deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt disco universe
     90deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt bionic universe
     91
     92# For other Debian based distributions add:
     93deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt alldist universe
     94}}}
     95
     96Alternatively, this can be done with the following one-liner in Ubuntu (not for Ubuntu based distributions like Linux Mint):
     97{{{#!sh
     98echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     99}}}
     100or for Linux Mint:
     101{{{#!sh
     102echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt $(grep ^DISTRIB_CODENAME= /etc/upstream-release/lsb-release| awk -F = '{print $(2)}') universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     103}}}
     104
     105{{{#!comment
     106### below did not work on all systems
     107and add the following line:
     108{{{#!sh
     109`deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt VERSION universe`
     110}}}
     111}}}
     112
     113Download the [/josm-apt.key public key]:
     114{{{#!sh
     115# Create the directory for manually downloaded keys if it was not already created
     116sudo mkdir -p /usr/local/share/keyrings
     117# Download the key
     118wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor -o /usr/local/share/keyrings/josm-apt.gpg
     119}}}
     120In the past, instructions used `apt-key`. If the key was added to system's keyring, following line will remove it:
     121{{{#!sh
     122sudo apt-key del $(apt-key list | grep -B1  "<josm-dev@openstreetmap.org>" | sed '$d' | cut -b 48-51,53-57)
     123}}}
     124
     125Now refresh your sources:
     126{{{#!sh
     127# You may need to install ssl support for apt in advance:
     128sudo apt-get install apt-transport-https
     129# Refresh sources
     130sudo apt-get update
     131}}}
     132
     133and install:
     134{{{#!sh
     135# You can skip this first line if these packages were not installed before.
     136sudo apt-get remove josm josm-plugins
     137
     138# For the tested version
     139sudo apt-get install josm
     140# For the development version
     141sudo apt-get install josm-latest
     142}}}
     143
     144
     145=== GNU Debian ===#GNUDebian
     146Our own Ubuntu packages, [#Ubuntu above], work on Debian and we recommend to use them. Depending on the setup of `sudo`, some instruction will not work as "normal" user but only as `root`.
     147
     148Since Debian 11 (bullseye) the [https://packages.debian.org/stable/josm-installer josm-installer] is available under **''main''** in section **''utils''**. It downloads the current .jar file from this site and updates it if necessary.
     149
     150The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**, but the version is usually quite old. \\
     151Please, use the [https://backports.debian.org backports repository] to get a more up-to-date version, see [https://backports.debian.org/Instructions Instructions]. Still this version might be quite old.
     152
     153=== openSUSE  ===#Opensuse
     154[=#openSUSE]
     155The tested version of JOSM is available in the Application:Geo repository.
     156
     157First add as root user in yast or with zypper the repository (for Tumbleweed replace **$releasever** with **openSUSE_Tumbleweed**):
     158{{{#!sh
     159zypper ar -f 'https://download.opensuse.org/repositories/Application:/Geo/$releasever' Application:Geo
     160}}}
     161
     162Then simply install ''josm'' and ''josm-fonts'' package.
     163
     164
     165== Troubleshooting ==
     166=== Java ===#Java
     167[=#Doubleclickonafiledoesnothing When you double-click on a jar file and nothing happens] in most cases this means Java isn't installed.
     168
     169JOSM was tested with Oracles variant, so we used to recommend getting Java from their pages for [https://www.java.com/download/manual.jsp manual] downloads or [https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html intermediate] versions.
     170
     171JOSM now recommends [https://www.azul.com/downloads/?package=jre-fx#download-openjdk Azul] or [https://bell-sw.com/pages/downloads/?package=jre-full#mn Bellsoft Liberica] JDK's. Generally speaking, the current Java LTS should be preferred (at time of writing, that would be Java 17), but Java 8 will work. See the [source:/trunk/README README] for current recommendations. But first give the Java already distributed with the operating system a try, [https://en.wikipedia.org/wiki/OpenJDK for example].
     172
     173
     174When choosing a download keep in mind:
     175 * A Java Plug-in for web browsers is **not** needed to run JOSM. Therefore results from pages like www.java.com/en/download/installed8.jsp are not relevant.
     176 * A Java variant with 64 bit is recommended for JOSM. The operating systems architecture is important for deciding between 32 bit Java or 64 bit Java. Because JOSM is **not** affected by the web browsers architecture most recommendations on this page www.java.com/en/download/faq/java_win64bit.xml are not relevant.
     177 * Avoid pages like www.java.com/en/download which intent to place Java Plug-ins in web browsers. And this is **not** important for JOSM.
     178
     179For further information visit the [InstallNotes Installation Notes] and [https://www.java.com/en/download/help/troubleshoot_java.xml troubleshooting] pages.
     180''Java'' in this section means a JRE (Java Runtime Engine) which provides a JVM (Java Virtual Machine) to run JOSM, a Java program that is developed using JDK (Java Development Kit) and sometimes launched with the JNLP (Java Network Launch Protocol aka Web Start and successor of Java Plug-ins).
     181
     182==== Testing Java ====#JavaTest
     183[=#Troubleshootingjarfile] Checks if Java is installed and why JOSM does not start (example mainly for MS Windows).
     1841. Download [/josm-tested.jar josm-tested.jar] to your desktop.
     1851. Open a Command Prompt aka Terminal
     1861. Type `cd %homepath%`⏎ and type `cd Desktop`⏎
     1871. Type `java -version `⏎ Three lines with the version data should appear. If you see something else then Java is not properly installed.
     1881. Type `java -jar josm-tested.jar`⏎. Now JOSM should run, started from the [wikitr:/Help/CommandLineOptions Command Line].
     1891. Quit JOSM.
     1901. Type `josm-tested.jar`⏎. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files.
     191
     192
     193=== Web Start ===#Webstart
     194[=#Troubleshootingjhlplink]
     195You need to install [https://openwebstart.com/ OpenWebStart] first. It will download and run Java by itself. The transition from Oracle WebStart to OpenWebStart is still in progress, so in case of issue please create a [/newticket new ticket] or post a comment to #17858.
     196
     197You may need to update the default application for opening JNLP files if you previously used Oracle WebStart. See [https://openwebstart.com/docs/OWSGuide.html#_jnlp_file_association jnlp file association] for instructions on setting OpenWebStart as the default program for jnlp files.
     198
     199==== Testing Web Start ====#Webstarttest
     2001. Download [/download/josm.jnlp josm.jnlp] to your desktop.
     2011. Open a Terminal and move to the Desktop as above
     2021. Type `javaws josm.jnlp`⏎. This should initially download JOSM, show a security dialog and then launch JOSM.
     2031. If that fails, then type `javaws -verbose josm.jnlp`⏎. This should first show a dialog with information about the JVM and then launch JOSM.
     204
     205
     206=== Virtual Machine ===#Troubleshootingjvm
     207==== Out of memory ====
     208Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown.
     209Wrongly chosen values can decrease JOSM performance.
     210
     211For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure a memory size that supports more plugins and features. On the other hand can slow machines be stabilized by restricting Javas memory use.
     212If needed, use the [wikitr:/Help/CommandLineOptions command line] to set the [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI Java Option] -Xmx…m, for example `-Xmx512m` or `-Xmx1536m`. In Debian/Ubuntu you can edit the file `/etc/default/josm` respectively `/etc/default/josm-latest`. \\
     213Formerly older java programs accepted `-Xmx=512m` or even `-Xmx 512m`. Now those malformed arguments throw error messages.
     214
     215==== VM selection ====#VMselectiononWindowsx64
     216On 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.
     217
     218On 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.
     219
     220Check that there's no other javawebstart in `\Windows\SysWow64`. The Java control panel will not detect it and you can safely delete it. Perform cleanup and only keep the latest versions of each JRE (One or the 32-bit mode, another one for the 64-bit mode).
     221
     222For 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!)
     223
     224Example of an edited command line for a shortcut on the windows desktop:
     225{{{
     226#!sh
     227javaws.exe -J-d64 -J-Xmx2048m  josm.jnlp
     228}}}
     229
     230
     231=== Windows josm.exe ===#Mswindowswrapper
     232Using josm-setup.exe for installation on Microsoft Windows does the following:
     233 * Puts two executable files `JOSM.exe` and `HWConsole.exe` in directory `%LOCALAPPDATA%\JOSM`
     234 * Registers JOSM.exe as target for the file extensions `*.osm`, `*.geojson`, `*.gpx`, `*.jos` and `*.joz`.
     235 * Places JOSM shortcut icons on the Desktop and in the Start Menu.
     236 * Adds uninstall data at the appropriate places.
     237
     238When starting, JOSM.exe starts JOSM with an embedded version of Java maintained by JOSM developers, based on Azul Zulu.
     239JOSM.exe acts as a ''wrapper'' and is [wikitr:/USB_Stick portable].
     240
     241HWConsole.exe is similar to JOSM.exe but start JOSM while keeping open a Windows console displaying JOSM standard output (logs).
     242
     243JOSM.exe accepts all usual [wikitr:/Help/CommandLineOptions#Programarguments JOSM Program arguments]. See example:
     244
     245{{{
     246#!sh
     247# Load OSM data
     248josm.exe https://www.osm.org/way/476702262
     249}}}
     250
     251For giving [wikitr:/Help/CommandLineOptions#Javaoptions Java options] to the Java VM JOSM.exe uses the configuration file `JOSM.cfg` in its app sub-directory. In this file each option needs a separate line.
     252
     253=== macOS ===#macOS
     254[=#MacOSErrors][=#MacOSXMountainLionErrors][=#Macoserrors]
     255{{{
     256#!comment
     257old section title, keeping as anchor for old links
     258}}}
     259
     260==== Using brew ====#brew
     261macOS users may use the [https://brew.sh/ homebrew] package manager to install and update their JOSM instance.
     262
     263In Terminal, run the `brew install --cask josm` to install or `brew upgrade --cask josm` to upgrade to the current tested version of JOSM.
     264
     265
     266=== Errori noti ===
     267Not closed issues about …:
     268* [/query?status=!closed&type=defect&keywords=~java Java issues] - some of the bugs lead to blockers in Oracle JVM (covered at [wiki:JavaBugs JavaBugs]).
     269* [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~linux&order=priority Linux]
     270* [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~ubuntu&order=priority Ubuntu]
     271* [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~macos&order=priority macOS]
     272* [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~windows&order=priority Windows]