其他語言:
Download
Overview
作業系統無關 | 網路啟動 | Windows | Mac OS X | Ubuntu, … | openSUSE | |
---|---|---|---|---|---|---|
測試版本 19253 | jar | jnlp | setup.exe (portable) | package.zip | 參見下方說明 | 參見下方說明 |
最新版本 19265 | jar | jnlp | 參見下方說明 | |||
older | 下載/ |
- 我該使用那個版本? (參見: 發佈系統)
- 測試版本為大約每月發佈,不應該會有嚴重錯誤
- 最新版本每日發佈,也許執行時會發生錯誤
- 如果可能請使用網路啟動版本,確保會自動更新。
- 用jarsigner驗證josm.jar
Page Outline
- 注意這份文件會頻繁更新,所以記得執行最新的版本(以及最新版本外掛)。
- 不用安裝就能使用的JOSM-WebStart
- 下載 JOSM測試版本 19253
- 下載 Windows JOSM 安裝檔版本19253
- 下載 Mac OS X JOSM 安裝包版本 19253
- 準備USB 隨身碟將你在任何不是自己的 Windows 電腦使用 JOSM。
- For download scripts use version check for latest and tested (or both) to reduce download bandwith
- 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 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
Mac OS X errors
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 complete the install enter OS X Preferences, visit 'Security & Privacy' ("General" section), and allow the execution of JOSM ("open anyway" button). Alternatively, temporarily change the settings to allow downloads from 'anywhere' (after JOSM runs the first time you can return the setting to the original position).
Development Version
- Download the latest JOSM version 19265 (may have more errors than "tested", be careful with this one).
Source
- Get the source:
- From the official Subversion repository (recommended if you're interested in JOSM core only):
svn co https://josm.openstreetmap.de/svn/trunk josm
- From the official OSM Subversion repository (recommended if you're also interested in plugins):
svn co https://svn.openstreetmap.org/applications/editors/josm
- From the unofficial GitHub mirror:
git clone git://github.com/openstreetmap/josm.git
- From the official Subversion repository (recommended if you're interested in JOSM core only):
- Or you can inspect single files over the web frontend at svn (or browser).
openSUSE repository
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
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.
Note: in addition to the regular procedure described below, older DEBs can be manually downloaded and clicked to be installed from the following directories: for josm for josm-latest
The repository contains two packages:
josm
- The tested version
Replaces the package from the official Ubuntu repository. josm-latest
- The development version (nightly build)
Can be installed parallel to thejosm
package. The default preference folder is~/.josm-latest
.
Installation
Edit the package resource list /etc/apt/sources.list
:
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
Download and register the public key:
wget -q https://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
Increase memory given to a JOSM
If JOSM runs out of memory, you can increase the maximum size of allocated memory (400 MB in this example):
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 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:
C:\Windows\System32\javaws.exe -J-d64 -Xmx=2048m -localfile -J-Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp "C:\Users\<snipped user name>\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\7311<snipped-hex-number>7f8"
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).