Changes between Initial Version and Version 1 of Zh_TW:Download


Ignore:
Timestamp:
2016-05-21T09:07:43+02:00 (9 years ago)
Author:
Supaplex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Zh_TW:Download

    v1 v1  
     1[[TranslatedPages]]
     2= Download =
     3
     4== Overview ==
     5
     6|| ||= 作業系統無關 =||= [https://www.java.com/en/download/faq/java_webstart.xml 網路啟動] =||= Windows =||= Mac OS X =||= Ubuntu, … =||= openSUSE =||
     7||= **測試版本** [[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] || ''[#Ubuntu 參見下方說明]'' || ''[#openSUSE 參見下方說明]'' ||
     8||= 最新版本 [[Version(latest)]] =|| [/josm-latest.jar jar] || [/download/josm-latest.jnlp jnlp] || || || ''[#Ubuntu 參見下方說明]'' || ||
     9||= older =|| [/download/ 下載/] || || || || || ||
     10
     11 * **我該使用那個版本?** (參見: [wiki:Releases 發佈系統])
     12   * ''測試版本''為大約每月發佈,不應該會有嚴重錯誤
     13   * ''最新版本''每日發佈,也許執行時會發生錯誤
     14   * 如果可能請使用網路啟動版本,確保會自動更新。
     15* 用jarsigner驗證josm.jar
     16
     17----
     18[[PageOutline(2-3,Page Outline)]]
     19
     20 * **注意這份文件會頻繁更新,所以記得執行最新的版本(以及最新版本外掛)。**
     21 * 不用安裝就能使用的[/download/josm.jnlp JOSM-WebStart]
     22 * 下載 **[/josm-tested.jar JOSM測試版本 ]** [[Version(tested)]]
     23 * 下載 [/download/windows/josm-setup.exe Windows JOSM 安裝檔]版本[[Version(windows)]]
     24 * 下載 [/download/macosx/josm-macosx.zip Mac OS X JOSM 安裝包]版本 [[Version(macos)]]
     25 * 準備[wiki:USB_Stick USB 隨身碟]將你在任何不是自己的 Windows 電腦使用 JOSM。
     26 * For download scripts use version check for [/latest latest] and [/tested tested] (or [/version both]) to reduce download bandwith
     27 * If download size is an issue for you:
     28  * 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).
     29  * **Note**: Use underscore to separate [[Translations|language codes]] with country code extensions, e.g. **?lang=en_GB**
     30  * Append **?unsigned=1** to strip the code signing information
     31  * When **lang** and **unsigned** are used the separation is a **&** sign like in **?lang=de&unsigned=1**
     32
     33
     34== Mac OS X errors ==
     35[=#MacOSXMountainLionErrors]
     36{{{
     37#!comment
     38old section title, keeping as anchor for old links
     39}}}
     40[[Image(#8787:damaged_josm_app.png,align=right,margin-top=-35)]]
     41Since Mac OS 10.8 a error message may appear on your first attempt to run JOSM:
     42* older versions: ''JOSM.app is damaged and can't be opened. You should move it to the Trash.''
     43* newer versions: ''JOSM.app can't be opened because it is from an unidentified developer.''
     44
     45To 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).
     46
     47== Development Version ==
     48
     49 * Download the **[/josm-latest.jar latest JOSM]** version [[Version(latest)]] (may have more errors than "tested", be careful with this one).
     50
     51== Source ==
     52
     53 * Get the source:
     54   * From the official Subversion repository (recommended if you're interested in JOSM core only):
     55{{{
     56#!sh
     57svn co https://josm.openstreetmap.de/svn/trunk josm
     58}}}
     59   * From the official OSM Subversion repository (recommended if you're also interested in plugins):
     60{{{
     61#!sh
     62svn co https://svn.openstreetmap.org/applications/editors/josm
     63}}}
     64   * From the unofficial [https://github.com/openstreetmap/josm GitHub mirror]:
     65{{{
     66#!sh
     67git clone git://github.com/openstreetmap/josm.git
     68}}}
     69 * Or you can inspect single files over the web frontend at [/svn] (or [/browser]).
     70
     71== openSUSE repository#openSUSE
     72
     73Tested version of JOSM is available in the Application:Geo repository.
     74
     75First add as root user in yast or with zypper the repository (replace the version in the URL with the one you are using):
     76{{{
     77zypper ar -f http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.2 Application:Geo
     78}}}
     79
     80Then simply install **josm** and **josm-fonts** package.
     81
     82== Ubuntu repository ==#Ubuntu
     83
     84This 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.
     85[[BR]]
     86Note: 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] 
     87
     88The repository contains two packages:
     89 {{{josm}}}:: ''The tested version''[[br]]
     90  Replaces the package from the official Ubuntu repository.
     91 {{{josm-latest}}}:: ''The development version (nightly build)''[[br]]
     92 Can be installed parallel to the {{{josm}}} package. The default preference folder is {{{~/.josm-latest}}}.
     93
     94=== Installation ===
     95
     96Edit the package resource list {{{/etc/apt/sources.list}}}:
     97
     98{{{
     99#!sh
     100sudo editor /etc/apt/sources.list
     101}}}
     102
     103and add one of the following lines according to your Ubuntu-Version:
     104
     105{{{
     106deb https://josm.openstreetmap.de/apt lucid universe
     107deb https://josm.openstreetmap.de/apt precise universe
     108deb https://josm.openstreetmap.de/apt quantal universe
     109deb https://josm.openstreetmap.de/apt raring universe
     110deb https://josm.openstreetmap.de/apt saucy universe
     111deb https://josm.openstreetmap.de/apt trusty universe
     112deb https://josm.openstreetmap.de/apt utopic universe
     113deb https://josm.openstreetmap.de/apt vivid universe
     114deb https://josm.openstreetmap.de/apt wily universe
     115deb https://josm.openstreetmap.de/apt xenial universe
     116}}}
     117
     118Alternatively, this can  be done with the following one-liner:
     119{{{
     120echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     121}}}
     122
     123For other Debian based distributions, add the following line:
     124
     125{{{
     126deb https://josm.openstreetmap.de/apt alldist universe
     127}}}
     128 
     129
     130{{{#!comment
     131### below did not work on all systems
     132and add the following line:
     133`
     134deb https://josm.openstreetmap.de/apt VERSION universe
     135`
     136}}}
     137
     138Download and register the [[/josm-apt.key|public key]]:
     139{{{
     140#!sh
     141wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -
     142}}}
     143
     144Now refresh your sources
     145{{{
     146#!sh
     147sudo apt-get update
     148}}}
     149and install:
     150 {{{josm}}}:: (You can skip the first line if you haven't installed these packages before.)
     151{{{
     152#!sh
     153sudo apt-get remove josm josm-plugins
     154sudo apt-get install josm
     155}}}
     156
     157 {{{josm-latest}}}::
     158{{{
     159#!sh
     160sudo apt-get install josm-latest
     161}}}
     162
     163
     164=== Increase memory given to a JOSM ===
     165
     166If JOSM runs out of memory, you can increase the maximum size of allocated memory (400 MB in this example):
     167{{{
     168JAVA_OPTS="-Xmx400M" josm
     169}}}
     170
     171Start with a different preference folder:
     172{{{
     173JAVA_OPTS="-Djosm.home=$HOME/.josm-tmp" josm
     174}}}
     175
     176
     177== VM selection on Windows x64 ==
     178
     179For 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.
     180
     181Check, 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).
     182
     183For 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!)
     184
     185Example of an edited commandline for the shortcut created on the windows desktop after running JOSM just once from the JNMP and exiting:
     186{{{
     187#!sh
     188C:\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"
     189}}}
     190You 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).