Changes between Initial Version and Version 1 of Sr-Latin:Download


Ignore:
Timestamp:
2019-10-19T11:46:31+02:00 (7 years ago)
Author:
BrackoNe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Sr-Latin:Download

    v1 v1  
     1[[TranslatedPages]]
     2[[PageOutline(2-3,Table of Contents)]]
     3= TRANSLATION IS IN PROGRESS =
     4
     5= Download =
     6
     7This page provides basic JOSM installation steps and troubleshooting information.
     8To start working with JOSM please see the [wikitr:/Introduction] and the [wikitr:/Help] pages.
     9And for very complex issues see [wikitr:/InstallNotes Installation Notes].
     10
     11== Recommended options ==
     12
     13[[Image(source:trunk/images/openlocation.png, valign=middle, link=[download/josm.jnlp])]] **Start [/download/josm.jnlp josm.jnlp]** (newest tested version) [[br]]
     14Recommended version, all platforms, automatic update to the newest ''tested version'' monthly ([#Webstart how to start]). [[br]]
     15[[br]]
     16
     17[[Image(source:trunk/images/download.png, valign=middle, link=[/josm-tested.jar])]] **Download [/josm-tested.jar josm-tested.jar]** (tested version [[Version(tested)]]) [[br]]
     18All platforms ([#Java how to run]). [[br]]
     19[[br]]
     20
     21== All download options ==#Moredownloadoptions
     22
     23Every [/roadmap month] the team of JOSM [wikitr:/Releases releases] a **tested version** for download.
     24The MS Windows and Apple Mac variants are built on this tested version.
     25When 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.
     26
     27[=#DevelopmentVersion]
     28Every [/log/josm/?verbose=on&limit=20 night] the build systems generate a **latest version**.
     29These versions might have severe errors. But mostly they work well, too.
     30For the latest version is also a Web Start variant available.
     31
     32
     33||= =||||= For all operating systems =||||||||||
     34||=Version =||=  Web Start  =||= Download =||= Windows =||= Apple Mac =||= Ubuntu, Debian…  =||= openSUSE =||
     35||tested [[Version(tested)]] ||   \
     36||   [/download/josm.jnlp josm.jnlp] ||  \
     37||   [/josm-tested.jar] ||           \
     38||   [[br]] [/download/windows/josm-setup.exe setup.exe] [[br]]''([#Mswindowswrapper see below])'' ||  \
     39||   [[br]] [/download/macosx/josm-macosx.zip package.zip] [[br]]''([#Macoserrors see below])'' ||  \
     40||   ''[#Ubuntu see below]'' ||          \
     41||   ''[#Opensuse see below]'' ||
     42||latest [[Version(latest)]] || \
     43||   [/download/josm-latest.jnlp latest.jnlp] ||  \
     44||   [/josm-latest.jar] || \
     45||   || || ''[#Ubuntu see below]'' || ||
     46||=older =|| || [/download/ download/] || || || [/apt/dists/ dists/] || ||
     47
     48When running scripts please first check on [/latest latest], [/tested tested] or [/version both] to reduce download bandwidth.
     49
     50** Strip translations **[=#Striptranslations]  \\
     51If 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].
     52
     53== Repositories ==
     54
     55=== openSUSE  ===#Opensuse
     56[=#openSUSE]
     57The tested version of JOSM is available in the Application:Geo repository.
     58
     59First add as root user in yast or with zypper the repository (replace the version in the URL with the one you are using):
     60{{{
     61zypper ar -f https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.0 Application:Geo
     62}}}
     63
     64Then simply install ''josm'' and ''josm-fonts'' package.
     65
     66=== Ubuntu ===#Ubuntu
     67
     68This 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.
     69
     70The repository contains two packages:
     71* ''josm''  – Provides the tested version (stable).  Replaces the package from the official Ubuntu repository.
     72* ''josm-latest'' – The latest version (nightly). Can be installed parallel to the josm package. The default preference folder is {{{~/.josm-latest}}}.
     73
     74In addition to the regular procedure described below, older DEBs can be manually downloaded from the [/apt/pool/universe/j/ archives].
     75
     76==== Installation ====
     77
     78Edit the package resource list {{{/etc/apt/sources.list}}}:
     79
     80{{{
     81#!sh
     82sudo editor /etc/apt/sources.list
     83}}}
     84
     85and add one of the following lines according to your Ubuntu-Version:
     86
     87{{{
     88#!sh
     89deb https://josm.openstreetmap.de/apt xenial universe
     90deb https://josm.openstreetmap.de/apt artful universe
     91deb https://josm.openstreetmap.de/apt bionic universe
     92deb https://josm.openstreetmap.de/apt disco universe
     93# For other Debian based distributions add:
     94deb https://josm.openstreetmap.de/apt alldist universe
     95}}}
     96
     97Alternatively, this can be done with the following one-liner in Ubuntu:
     98{{{
     99echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | ↩
     100↪sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     101}}}
     102
     103{{{#!comment
     104### below did not work on all systems
     105and add the following line:
     106`
     107deb https://josm.openstreetmap.de/apt VERSION universe
     108`
     109}}}
     110
     111Download and register the [[/josm-apt.key|public key]]:
     112{{{
     113#!sh
     114wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -
     115}}}
     116
     117Now refresh your sources (you may need to install `sudo apt-get install apt-transport-https`)
     118{{{
     119#!sh
     120sudo apt-get update
     121}}}
     122and install:
     123
     124{{{
     125#!sh
     126# You can skip this first line if these packages were not installed before.
     127sudo apt-get remove josm josm-plugins
     128
     129# For the tested version
     130sudo apt-get install josm
     131# for the development version
     132sudo apt-get install josm-latest
     133}}}
     134
     135== Troubleshooting ==
     136=== Java ===#Java
     137[=#Doubleclickonafiledoesnothing When you double-click on a jar file and nothing happens] in most cases this means Java isn't installed.
     138
     139JOSM is tested with Oracles variant, so we recommend to get Java from their pages for [https://www.java.com/download/manual.jsp manual] downloads or [http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html intermediate] versions. But first give the Java already distributed with the operating system a try, [https://en.wikipedia.org/wiki/OpenJDK for example].
     140
     141When choosing a download keep in mind:
     142 * 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.
     143 * 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.
     144 * 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.
     145
     146For further information visit the [InstallNotes Installation Notes] and [https://www.java.com/en/download/help/troubleshoot_java.xml troubleshooting] pages.
     147''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).
     148
     149==== Testing Java ====#Javatest
     150[=#Troubleshootingjarfile] Checks if Java is installed and why JOSM does not start (example mainly for MS Windows).
     1511. Download [/josm-tested.jar josm-tested.jar] to your desktop.
     1521. Open a Command Prompt aka Terminal
     1531. Type `cd %homepath%`⏎ and type `cd Desktop`⏎
     1541. Type `java -version `⏎ Three lines with the version data should appear. If you see something else then Java is not properly installed.
     1551. Type `java -jar josm-tested.jar`⏎. Now JOSM should run, started from the [wikitr:/Help/CommandLineOptions Command Line].
     1561. Quit JOSM.
     1571. Type `josm-tested.jar`⏎. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files.
     158
     159
     160=== Web Start ===#Webstart
     161[=#Troubleshootingjhlplink]
     162Launching JOSM via Web Start has many more error causes than the traditional way with first downloading a jar file and afterwards starting it.
     163So please test [#JavaTest Java] first and then run the tests described below or elsewhere [https://www.java.com/en/download/faq/java_webstart.xml Web Start issues].
     164
     165==== Testing Web Start ====#Webstarttest
     1661. Download [/download/josm.jnlp josm.jnlp] to your desktop.
     1671. Open a Terminal and move to the Desktop as above
     1681. Type `javaws josm.jnlp`⏎. This should initially download JOSM, show a security dialog and then launch JOSM.
     1691. If that fails, then type `javaws -verbose josm.jnlp`⏎. This should first show a dialog with information about the JVM and then launch JOSM.
     170
     171
     172=== Virtual Machine ===#Troubleshootingjvm
     173
     174==== Out of memory ====
     175
     176Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown.
     177Wrongly chosen values can decrease JOSM performance.
     178
     179For 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.
     180If 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`.
     181Formerly older java programs accepted `-Xmx=512m` or even `-Xmx 512m`. Now those malformed arguments throw error messages.
     182
     183
     184==== VM selection ====#VMselectiononWindowsx64
     185
     186On 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.
     187
     188On 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.
     189
     190Check 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).
     191
     192For 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!)
     193
     194Example of an edited command line for a shortcut on the windows desktop:
     195{{{
     196#!sh
     197javaws.exe -J-d64 -J-Xmx2048m  josm.jnlp
     198}}}
     199
     200=== Windows josm.exe ===#Mswindowswrapper
     201
     202Using josm-setup.exe for installation on Microsoft Windows does the following:
     203 * Puts the files `josm-tested.jar` and `josm.exe` in directory chosen by the user, default is `C:\Program Files (86)\JOSM\`
     204 * Suggests to register josm.exe as target for the file extensions `*.osm` and `*.gpx`.
     205 * Suggests to place JOSM shortcut icons on the Desktop and in the Start Menu (Currently they are placed for an admin only and can be copied from there, #11398).
     206 * Asks if the Plug-Ins Imagery offset database and Turn restrictions should be provided.
     207 * Adds uninstall data at the appropriate places.
     208
     209When starting, josm.exe searches its directory for the jar file and runs the command `\path\to\javaw.exe -Xms128m -Xmx1024m -jar \path\to\josm-tested.jar`.
     210Josm.exe acts as a ''wrapper'' and is [wikitr:/USB_Stick portable].
     211
     212When josm.exe finds the argument `--l4j-debug`, it writes the log file `launch4j.log` into the current directory if that is writeable. Some other [http://launch4j.sourceforge.net/docs.html#Runtime_options options] are possible and all usual [wikitr:/Help/CommandLineOptions#Programarguments JOSM Program arguments] too. See example:
     213
     214{{{
     215#!sh
     216# Write a log while starting JOSM and load OSM data
     217josm.exe --l4j-debug https://www.osm.org/way/476702262
     218}}}
     219
     220For giving [wikitr:Help/CommandLineOptions#Javaoptions Java options] to the Java VM josm.exe uses the optional file `josm.l4j.ini` in its directory. In this file each option needs a separate line and comments are possible, see [http://launch4j.sourceforge.net/docs.html#Additional_jvm_options Additional JVM options].
     221
     222While being a 32-bit program, josm.exe seems to need a 64-bit Java on 64-bit Windows.
     223
     224=== MacOS Errors ===#Macoserrors
     225[=#MacOSErrors][=#MacOSXMountainLionErrors]
     226{{{
     227#!comment
     228old section title, keeping as anchor for old links
     229}}}
     230
     231Apple has two mechanisms to ''protect'' you from using JOSM: [https://support.apple.com//HT201940 File Quarantine] and [https://support.apple.com//HT202491 Gatekeeper].
     232
     233==== Downloaded from the internet ====
     234[[Image(josm_1st_run.png,width=320,align=right,float=left)]] 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.
     235
     236==== Damaged ====
     237[[Image(#8787:damaged_josm_app.png,width=300,align=left,margin-top=-50,margin-right=30)]]
     238
     239If 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.
     240
     241Open System Preferences and the 'Security & Privacy' options. Set 'Allow applications downloaded from:' to 'Anywhere'.
     242
     243[[Image(SecurityPrivacy.png,align=right,float=left,width=300)]]
     244
     245If that radio button is missing from the Security & Privacy preferences panel, open the Terminal window. The following command may become the radio button to appear.
     246
     247{{{
     248sudo spctl --master-disable
     249}}}
     250
     251
     252==== Using brew ====#brew
     253MacOS users may choose [https://brew.sh/ homebrew] package manager as a universal way to install and update their JOSM instance.
     254
     255Using `brew cask` eliminates most of the above-mentioned issues. (see. [https://caskroom.github.io/]).
     256
     257Open Terminal and run the next commands to install or upgrade JOSM to the current tested version, respectively:
     258
     259{{{
     260brew cask install josm
     261}}}
     262{{{
     263brew cask upgrade josm
     264}}}
     265=== Known issues ===
     266
     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 [[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]