| 14 | | [[br]] |
| 15 | | [[br]] |
| 16 | | [[br]] |
| 17 | | [[br]] |
| 18 | | |
| 19 | | == その他のダウンロードオプション == |
| 20 | | |
| 21 | | ''定期的にアップグレードが行われています。常に最新のバージョンを使うよう心がけてください。(プラグインも最新の物を使用してください)'' |
| 22 | | |
| 23 | | || ||= OS依存なし =||= [https://www.java.com/en/download/faq/java_webstart.xml Web Start] =||= Windows =||= Mac OS X =||= Ubuntu, … =||= openSUSE =|| |
| 24 | | ||= **テスト済み版** [[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 下記参照]'' || |
| 25 | | ||= 開発版 [[Version(latest)]] =|| [/josm-latest.jar jar] || [/download/josm-latest.jnlp jnlp] || || || ''[#Ubuntu 下記参照]'' || || |
| 26 | | ||= 過去バージョン =|| [/download/ download/] || || || || || || |
| 27 | | |
| 28 | | === 最新のテスト済みまたはウェブスタート === |
| 29 | | * ''テスト済み版'' - [wikitr:Releases ほぼ一カ月ごとにリリースされ重大なバグを含まないものです。] |
| 30 | | * ''開発版'' - [wikitr:Releases 毎日リリースされますがより多くのエラーを含んでいる可能性があります。] |
| 31 | | * ''.jhlp link'' - 可能ならWeb Startを使って'''自動更新'''するようにしてください。 |
| 32 | | |
| 33 | | ---- |
| 34 | | [[PageOutline(2-3,ページ構成)]] |
| 35 | | |
| 36 | | * 管理外でJOSMをインストールできないWindowsマシン用に [wiki:USB_Stick USBフラッシュドライブ] を作ることもできます。 |
| 37 | | * ダウンロードスクリプトを使う場合は、帯域幅を節約できるようにバージョンチェック用リンクの [/latest 最新版] と [/tested テスト済み] (または [/version 両方]) をチェックするようにしてください。 |
| 38 | | * ダウンロードサイズが大きすぎる場合 |
| 39 | | * ダウンロードリンクに**?lang=…**を追加するとそれ以外の言語の翻訳を取り除くことができます (例: **?lang=ja**で日本語だけに対応するJOSMをダウンロードできます)。 |
| 40 | | * **注意**: [[Translations|言語コード]]と国コードはアンダースコア(下線)でつないでください。例: **?lang=ja_JP** |
| 41 | | * **?unsigned=1**を追加するとコード署名情報を取り除くことができます。 |
| 42 | | * **lang**と**unsigned**の両方を使用するときは**?lang=ja&unsigned=1**のように**&**を使用してください。 |
| 43 | | |
| 44 | | == Mac OS X でのエラー ==#Macoserrors |
| 45 | | [=#MacOSXMountainLionErrors] |
| 46 | | {{{ |
| 47 | | #!comment |
| 48 | | old section title, keeping as anchor for old links |
| 49 | | }}} |
| 50 | | [[Image(#8787:damaged_josm_app.png,align=right,margin-top=-35)]] |
| 51 | | MacOS 10.8以降、JOSMを最初に起動しようとするとエラーメッセージが表示されることがあります。 |
| 52 | | * 古いバージョン: ''JOSM.app is damaged and can't be opened. You should move it to the Trash.'' |
| 53 | | * 新しいバージョン: ''JOSM.app can't be opened because it is from an unidentified developer.'' |
| 54 | | |
| 55 | | 初めてJOSMを開くには、JOSM.appを右クリックし、ポップアップダイアログで実行を確認します。これは、JOSMの初回実行時のみ必要です。 |
| 56 | | |
| 57 | | == ソース == #Source |
| 58 | | |
| 59 | | * ソースコードの入手方法: |
| 60 | | * 公式のSubversionリポジトリから(JOSMのコアのみに興味がある場合の推奨): |
| 61 | | {{{ |
| 62 | | #!sh |
| 63 | | svn co https://josm.openstreetmap.de/svn/trunk josm |
| 64 | | }}} |
| 65 | | * 公式のOSM Subversionリポジトリから(プラグインにも興味がある場合の推奨): |
| 66 | | {{{ |
| 67 | | #!sh |
| 68 | | svn co https://svn.openstreetmap.org/applications/editors/josm |
| 69 | | }}} |
| 70 | | * 非公式の[https://github.com/openstreetmap/josm GitHubミラー]から: |
| 71 | | {{{ |
| 72 | | #!sh |
| 73 | | git clone git://github.com/openstreetmap/josm.git |
| 74 | | }}} |
| 75 | | * または、[/svn](もしくは[/browser])のウェブフロントエンドで単一のファイルを検査できます。 |
| 76 | | |
| 77 | | == openSUSEリポジトリ ==#openSUSE |
| 78 | | |
| | 17 | |
| | 18 | == すべてのダウンロードオプション ==#Moredownloadoptions |
| | 19 | JOSMのチームは[/roadmap 毎月]、**テスト版**を[wikitr:/Releases リリース]します。 |
| | 20 | このテスト版では、MS WindowsおよびApple Macの亜種が作成されています。 |
| | 21 | josm.jnlpをクリックしてJOSMを起動すると、常に最新のテスト済みのバージョンが取得されます。 Java [wikitr:/InstallNotes#Webstart Web Start]はこの背後にあるメカニズムです。 |
| | 22 | |
| | 23 | [=#DevelopmentVersion] |
| | 24 | [/log/josm/?verbose=on&limit=20 毎晩]ビルドシステムが**最新バージョン**を生成します。 |
| | 25 | これらのバージョンは重大なエラーが発生することがあります。しかし、ほとんどはうまくいきます。 |
| | 26 | 最新版では、Web Startのバリアントも利用できます。 |
| | 27 | |
| | 28 | |
| | 29 | ||= =||||= すべてのオペレーティングシステム =|||||||||| |
| | 30 | ||=バージョン =||= Web Start =||= Download =||= Windows =||= Apple Mac =||= Ubuntu, Debian… =||= openSUSE =|| |
| | 31 | ||テスト済み版 [[Version(tested)]] || \ |
| | 32 | || [/download/josm.jnlp josm.jnlp] || \ |
| | 33 | || [/josm-tested.jar] || \ |
| | 34 | || [[br]] [/download/windows/josm-setup.exe setup.exe] [[br]]''([#Mswindowswrapper 下記参照])'' || \ |
| | 35 | || [[br]] [/download/macosx/josm-macosx.zip package.zip] [[br]]''([#Macoserrors 下記参照])'' || \ |
| | 36 | || ''[#Ubuntu 下記参照]'' || \ |
| | 37 | || ''[#Opensuse 下記参照]'' || |
| | 38 | ||開発版 [[Version(latest)]] || \ |
| | 39 | || [/download/josm-latest.jnlp latest.jnlp] || \ |
| | 40 | || [/josm-latest.jar] || \ |
| | 41 | || || || ''[#Ubuntu 下記参照]'' || || |
| | 42 | ||=過去バージョン =|| || [/download/ download/] || || || [/apt/dists/ dists/] || || |
| | 43 | |
| | 44 | スクリプトを実行する際には、[/latest 最新]、[/tested テスト済み]、または[/version その両方]をチェックして、ダウンロード帯域幅を減らしてください。 |
| | 45 | |
| | 46 | ** Strip translations **[=#Striptranslations] \\ |
| | 47 | ダウンロードサイズが問題である場合、テストされたバージョンのより小さいファイルが利用可能です。英語のみを含むダウンロードの場合、[/josm-tested.jar?lang=en ?lang=en]を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]. |
| | 48 | |
| | 49 | == リポジトリ == |
| | 50 | |
| | 51 | === openSUSE ===#Opensuse |
| | 52 | [=#openSUSE] |
| 171 | | |
| 172 | | === JOSMに割り当てられたメモリを増やす === |
| 173 | | |
| 174 | | JOSMがメモリーを使い果たしてしまう場合、割り当てメモリの最大サイズを増やすことができます(以下の例では400MB): |
| 175 | | {{{ |
| 176 | | JAVA_OPTS="-Xmx400m" josm |
| 177 | | }}} |
| 178 | | |
| 179 | | 別の設定フォルダで起動する方法: |
| 180 | | {{{ |
| 181 | | JAVA_OPTS="-Djosm.home=$HOME/.josm-tmp" josm |
| 182 | | }}} |
| 183 | | |
| 184 | | |
| 185 | | == Windows x64版でのVM選択 == |
| 186 | | |
| 187 | | Windowsの場合、ブラウザによっては専用のJREを32bitモードのみでインストールすることがありますが、Javawebstartツールについても特定のバージョンを別のファイル拡張子の関連付けでインストールする場合があります。 このため32bitのVMしかサポートしない誤ったバージョンのJavawebstartが使われてしまい、この別のJREでJNLPが起動されることがあります。 さらにVMオプションのサポートが限られている場合は最大VMサイズを256MBを超えて設定できないことがあります。 |
| 188 | | |
| 189 | | 確認するには、例えば {{{\Windows\SysWow64}}} フォルダに他のjavawebstartが無いかを調べてください。 これは不要で(Javaコントロールパネルも検知できないので)安全に削除できます。 きれいにして最新のバージョンのJREだけを置いておくようにしましょう(一つは32bitモード用、もう一つは64ビットモード用)。 |
| 190 | | |
| 191 | | デスクトップ上にJNLP用のショートカットを作成してJavawebstartランチャを({{{\windows\system32}}}から)実行する際には、引数 -J を付けてVMオプションをすぐに続けて置くことでVMパラメタを渡すことができます。 32bit用と64bit用の両方をインストールしている場合は、"{{{-d64}}}"オプションを渡すことで64bit用を優先して選択することができます。 (Oracleのいくつかのドキュメントでは、このオプションを誤って大文字の"-D64"と表記しています!) |
| 192 | | |
| 193 | | JNMPからJOSMを一度起動して終了した後に、Windowsのデスクトップに作られたショートカットのコマンドラインを修正した例です: |
| 194 | | {{{ |
| 195 | | #!sh |
| 196 | | C:\Windows\System32\javaws.exe -J-d64 -Xmx=2048m -localfile -J-Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp "C:\Users\<ユーザ名>\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\7311<16進数>7f8" |
| 197 | | }}} |
| 198 | | コマンドラインの最後の引数にある<>の部分を変更する必要はありません。 大きなOSMデータセットを扱うのであれば、{{{javaws.exe}}} のパスの確認と、64bitモードの指定オプション {{{-J-d64}}} の追加、VMサイズを(例えば2GBに)拡張するための {{{-Xmx=2048m}}} を追加するようにしてください。 |
| | 128 | == トラブルシューティング == |
| | 129 | === Java ===#Java |
| | 130 | [=#Doubleclickonafiledoesnothing When you double-click on a jar file and nothing happens] in most cases this means Java isn't installed. |
| | 131 | |
| | 132 | JOSM 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]. |
| | 133 | |
| | 134 | When choosing a download keep in mind: |
| | 135 | * 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. |
| | 136 | * 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. |
| | 137 | * 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. |
| | 138 | |
| | 139 | For further information visit the [InstallNotes Installation Notes] and [https://www.java.com/en/download/help/troubleshoot_java.xml troubleshooting] pages. |
| | 140 | ''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). |
| | 141 | |
| | 142 | ==== Testing Java ====#Javatest |
| | 143 | [=#Troubleshootingjarfile] Checks if Java is installed and why JOSM does not start (example mainly for MS Windows). |
| | 144 | 1. Download [/josm-tested.jar josm-tested.jar] to your desktop. |
| | 145 | 1. Open a Command Prompt aka Terminal |
| | 146 | 1. Type `cd %homepath%`? and type `cd Desktop`? |
| | 147 | 1. Type `java -version `? Three lines with the version data should appear. If you see something else then Java is not properly installed. |
| | 148 | 1. Type `java -jar josm-tested.jar`?. Now JOSM should run, started from the [wikitr:/Help/CommandLineOptions Command Line]. |
| | 149 | 1. Quit JOSM. |
| | 150 | 1. Type `josm-tested.jar`?. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files. |
| | 151 | |
| | 152 | |
| | 153 | === Web Start ===#Webstart |
| | 154 | [=#Troubleshootingjhlplink] |
| | 155 | Launching JOSM via Web Start has many more error causes than the traditional way with first downloading a jar file and afterwards starting it. |
| | 156 | So 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]. |
| | 157 | |
| | 158 | ==== Testing Web Start ====#Webstarttest |
| | 159 | 1. Download [/josm-tested.jar josm.jnlp] to your desktop. |
| | 160 | 1. Open a Terminal and move to the Desktop as above |
| | 161 | 1. Type `javaws josm.jnlp`?. This should initially download JOSM, serve a security dialog and then launch JOSM. |
| | 162 | |
| | 163 | |
| | 164 | === Virtual Machine ===#Troubleshootingjvm |
| | 165 | |
| | 166 | ==== メモリ不足 ==== |
| | 167 | |
| | 168 | Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown. |
| | 169 | Wrongly chosen values can decrease JOSM performance. |
| | 170 | |
| | 171 | For 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. |
| | 172 | If 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`. |
| | 173 | Formerly older java programs accepted `-Xmx=512m` or even `-Xmx 512m`. Now those malformed arguments throw error messages. |
| | 174 | |
| | 175 | |
| | 176 | ==== VM選択 ====#VMselectiononWindowsx64 |
| | 177 | |
| | 178 | 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. |
| | 179 | |
| | 180 | 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. |
| | 181 | |
| | 182 | 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). |
| | 183 | |
| | 184 | 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!) |
| | 185 | |
| | 186 | Example of an edited command line for a shortcut on the windows desktop: |
| | 187 | {{{ |
| | 188 | #!sh |
| | 189 | javaws.exe -J-d64 -J-Xmx2048m josm.jnlp |
| | 190 | }}} |
| | 191 | |
| | 192 | === Windows josm.exe ===#Mswindowswrapper |
| | 193 | |
| | 194 | Using josm-setup.exe for installation on Microsoft Windows does the following: |
| | 195 | * Puts the files `josm-tested.jar` and `josm.exe` in directory chosen by the user, default is `C:\Program Files (86)\JOSM\` |
| | 196 | * Suggests to register josm.exe as target for the file extensions `*.osm` and `*.gpx`. |
| | 197 | * 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). |
| | 198 | * Asks if the Plug-Ins Imagery offset database and Turn restrictions should be provided. |
| | 199 | * Adds uninstall data at the appropriate places. |
| | 200 | |
| | 201 | When 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`. |
| | 202 | Josm.exe acts as a ''wrapper'' and is [wikitr:/USB_Stick portable]. |
| | 203 | |
| | 204 | When 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: |
| | 205 | |
| | 206 | {{{ |
| | 207 | #!sh |
| | 208 | # Write a log while starting JOSM and load OSM data |
| | 209 | josm.exe --l4j-debug https://www.osm.org/way/476702262 |
| | 210 | }}} |
| | 211 | |
| | 212 | For 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]. |
| | 213 | |
| | 214 | While being a 32-bit program, josm.exe seems to need a 64-bit Java on 64-bit Windows. |
| | 215 | |
| | 216 | === MacOS でのエラー ===#Macoserrors |
| | 217 | [=#MacOSErrors][=#MacOSXMountainLionErrors] |
| | 218 | {{{ |
| | 219 | #!comment |
| | 220 | old section title, keeping as anchor for old links |
| | 221 | }}} |
| | 222 | |
| | 223 | Apple has two mechanisms to ''protect'' you from using JOSM: [https://support.apple.com//HT201940 File Quarantine] and [https://support.apple.com//HT202491 Gatekeeper]. |
| | 224 | |
| | 225 | ==== Downloaded from the internet ==== |
| | 226 | 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. |
| | 227 | |
| | 228 | ==== Damaged ==== |
| | 229 | [[Image(#8787:damaged_josm_app.png,width=300,align=left,margin-top=-50,margin-right=30)]] |
| | 230 | |
| | 231 | 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. |
| | 232 | |
| | 233 | Open System Preferences and the 'Security & Privacy' options. Set 'Allow applications downloaded from:' to 'Anywhere'. |
| | 234 | |
| | 235 | [[Image(wiki:Download:SecurityPrivacy.png,align=right,float=left,width=300)]] |
| | 236 | |
| | 237 | If 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. |
| | 238 | |
| | 239 | {{{ |
| | 240 | sudo spctl --master-disable |
| | 241 | }}} |
| | 242 | |
| | 243 | |
| | 244 | ==== Using brew ====#brew |
| | 245 | MacOS users may choose [https://brew.sh/ homebrew] package manager as a universal way to install and update their JOSM instance. |
| | 246 | |
| | 247 | Using `brew cask` eliminates most of the above-mentioned issues. (see. [https://caskroom.github.io/]). |
| | 248 | |
| | 249 | Open Terminal and run the next commands to install or upgrade JOSM to the current tested version, respectively: |
| | 250 | |
| | 251 | {{{ |
| | 252 | brew cask install josm |
| | 253 | }}} |
| | 254 | {{{ |
| | 255 | brew cask upgrade josm |
| | 256 | }}} |
| | 257 | === 既知の問題 === |
| | 258 | |
| | 259 | 閉じられていない問題 ...: |
| | 260 | * [/query?status=!closed&type=defect&keywords=~java Java issues] - some of the bugs lead to blockers in Oracle JVM (covered at [[JavaBugs]]). |
| | 261 | * [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~linux&order=priority Linux] |
| | 262 | * [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~ubuntu&order=priority Ubuntu] |
| | 263 | * [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~macos&order=priority MacOS] |
| | 264 | * [/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~windows&order=priority Windows]B |