wiki:Ja:Download

Version 29 (modified by anonymous, 6 years ago) ( diff )

--

Translation is incomplete

ダウンロード

このページでは、JOSMの基本的なインストール手順とトラブルシューティング情報を提供しています。 JOSMの作業を開始するには、JOSMことはじめメインヘルプページを参照してください。 非常に複雑な問題については、Installation Notes (en)を参照してください。

推奨オプション

source:trunk/images/openlocation.png josm.jnlpを起動する(最新のテスト済みバージョン)
推奨バージョン、すべてのプラットフォーム、最新のテスト済みバージョンへの自動アップデート (how to start)。

source:trunk/images/download.png josm-tested.jarをダウンロードする(テスト済みバージョン 19039)
すべてのプラットフォーム (how to run)。

すべてのダウンロードオプション

JOSMのチームは毎月テスト版リリースします。 このテスト版では、MS WindowsおよびApple Macの亜種が作成されています。 josm.jnlpをクリックしてJOSMを起動すると、常に最新のテスト済みのバージョンが取得されます。Java Web Start (en)メカニズムを使用しています。

毎晩ビルドシステムが最新バージョンを生成します。 これらのバージョンは重大なエラーが発生することがあります。しかし、ほとんどの場合はうまくいきます。 最新版では、Web Start版も利用できます。

すべてのオペレーティングシステム
バージョン Web Start Download Windows Apple Mac Ubuntu, Debian… openSUSE
テスト済み版 19039 josm.jnlp josm-tested.jar
setup.exe
(下記参照)

package.zip
(下記参照)
下記参照 下記参照
開発版 19043 latest.jnlp josm-latest.jar 下記参照
過去バージョン download/ dists/

スクリプトを実行する際には、最新テスト済み、またはその両方をチェックして、ダウンロード帯域幅を減らしてください。

Strip translations
ダウンロードサイズが問題である場合、テストされたバージョンのより小さいファイルが利用可能です。日本語のみを含むダウンロードの場合、?lang=jaをURLに追加します。翻訳を1つのみ含めるには、jaをあなたが望む言語コード (en)に置き換えます(最初の文字は小文字、サポートされている言語のみ)。また、?unsigned=1を追加して署名情報を取り除くことで、ファイルサイズをさらに減らすことができます。

リポジトリ

openSUSE

JOSMのテスト版は、Application:Geoリポジトリにあります。

最初にrootユーザーとしてyastに追加するか、リポジトリをzypperで追加します(URLのバージョンを使用しているバージョンに置き換えてください):

zypper ar -f https://download.opensuse.org/repositories/Application:/Geo/openSUSE_15.0 Application:Geo

その後、josmjosm-fontsパッケージをインストールしてください。

Ubuntu

このパッケージリポジトリはUbuntu用です。他のDebianベースの(特にUbuntuベースの)ディストリビューションでも動作するはずですが、Ubuntu以外のディストリビューションではあまりテストやメンテナンスをしていません。

Ubuntuリポジトリには二つのパッケージが含まれています:

  • josm - テスト済み版を提供します(安定版)。公式のUbuntuリポジトリのパッケージを置き換えます。
  • josm-latest - 最新版(nightly)。josmパッケージと並行してインストールできます。デフォルトの設定フォルダは ~/.josm-latest です。

以下で説明する通常の手順に加えて、古いDEBはアーカイブから手動でダウンロードできます。

インストール

パッケージリソースリスト /etc/apt/sources.list を編集してください:

sudo editor /etc/apt/sources.list

利用中のUbuntuのバージョンに応じた行を追加してください:

deb https://josm.openstreetmap.de/apt trusty universe
deb https://josm.openstreetmap.de/apt xenial universe
deb https://josm.openstreetmap.de/apt alldist universe

これに代えて、次の一行で行うこともできます:

echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | ↩
↪sudo tee /etc/apt/sources.list.d/josm.list > /dev/null

公開鍵をダウンロードして登録してください:

wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -

ソースを更新します (sudo apt-get install apt-transport-httpsを実行する必要があります)

sudo apt-get update

インストールします

# これらのパッケージが以前にインストールされていない場合は、この最初の行をスキップできます。
sudo apt-get remove josm josm-plugins

# テスト済み版の場合
sudo apt-get install josm
# 開発版の場合
sudo apt-get install josm-latest

トラブルシューティング

Java

jarファイルをダブルクリックしても何も起こらないとき、ほとんどの場合、これはJavaがインストールされていないことを意味します。

JOSMはOracles版でテストされているため、手動ダウンロードや中間バージョンのページからJavaを入手することをお勧めします。しかし、まずオペレーティングシステムと共に配布されているJava()を試してみてください。

ダウンロードを選択する際は、次の点に注意してください。

  • Webブラウザ用のJava Plug-inは、JOSMを実行するために必要ありません。したがって、www.java.com/ja/download/installed8.jspのようなページからの結果は関係ありません。
  • JOSMには64ビットのJavaバリアントが推奨されます。オペレーティング・システムのアーキテクチャーは、32ビット版か64ビット版Javaかを決める上で重要です。JOSMはWebブラウザのアーキテクチャの影響を受けないため、このページのほとんどの推奨事項はwww.java.com/ja/download/faq/java_win64bit.xmlとは関係ありません。
  • WebブラウザにJava Plug-inを配置するためのwww.java.com/ja/downloadのようなページは避けてください。これはJOSMにとって重要ではありません

For further information visit the Installation Notes and troubleshooting pages. 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).

Javaのテスト

Javaがインストールされているかどうか、JOSMが起動しない理由を確認します(主にMS Windowsの場合など)。

  1. josm-tested.jarをデスクトップにダウンロードします。
  2. 「端末」もしくは「コマンドプロンプト」を開きます。
  3. cd %homepath%と入力した後cd Desktopと入力します。
  4. タイプ java -version バージョン情報の3行が表示されます。それ以外のものがある場合は、Javaが正しくインストールされていません。
  5. java -jar josm-tested.jarと入力します。JOSMはコマンドラインから起動する必要があります。
  6. JOSMを終了します。
  7. josm-tested.jarと入力します。JOSMが再び起動すると、Windowsエクスプローラはjarファイルをダブルクリックして起動する準備が整います。

Web Start

Web Startを介してJOSMを起動すると、jarファイルを最初にダウンロードした後、それを開始する従来の方法よりも多くのエラーが発生します。 したがって、まずJavaをテストしてから、以下に説明されているテストまたは他のWeb Startの問題を実行してください。

Web Startのテスト

  1. Download josm.jnlp to your desktop.
  2. Open a Terminal and move to the Desktop as above
  3. Type javaws josm.jnlp⏎. This should initially download JOSM, serve a security dialog and then launch JOSM.

仮想マシン

メモリ不足

最近、Javaのメモリを手動で制御することはめったに必要ではありません。 誤って選択された値は、JOSMのパフォーマンスを低下させる可能性があります。

いくつかのタスクでは、JOSMはメモリに対する大きな欲求を持っています。一方では、より多くのプラグインと機能をサポートするメモリサイズを設定する必要があります。 一方、Javaのメモリ使用を制限することで、遅いマシンの動作を安定させることができます。 If needed, use the command line to set the Java Option -Xmx…m, for example -Xmx512m or -Xmx1536m. Formerly older java programs accepted -Xmx=512m or even -Xmx 512m. Now those malformed arguments throw error messages.

VM選択

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.

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.

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).

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!)

Example of an edited command line for a shortcut on the windows desktop:

javaws.exe -J-d64 -J-Xmx2048m  josm.jnlp

Windows josm.exe

Microsoft Windowsへのインストールにjosm-setup.exeを使用すると、次のことが実行されます。

  • josm-tested.jar josm.exeファイルをユーザが選択したディレクトリに置きます。デフォルトはC:\Program Files (86)\JOSM\です。
  • *.osm and *.gpx.ファイル拡張子*.osm*.gpxのターゲットとしてjosm.exeを登録することを提案します。
  • JOSMのショートカットをデスクトップとスタートメニューに配置するように提案します。(現在は管理者用に配置されており、そこからコピーすることができます。#11398
  • Asks if the Plug-Ins Imagery offset database and Turn restrictions should be provided.
  • 適切な場所にアンインストールデータを追加します。

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. Josm.exe acts as a wrapper and is portable.

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 options are possible and all usual JOSM Program arguments too. See example:

# Write a log while starting JOSM and load OSM data
josm.exe --l4j-debug https://www.osm.org/way/476702262

For giving 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 Additional JVM options.

While being a 32-bit program, josm.exe seems to need a 64-bit Java on 64-bit Windows.

MacOS でのエラー

Appleには、JOSMの使用からあなたを保護する2つのメカニズムがあります: File QuarantineGatekeeperです。

インターネットからのダウンロード

「JOSM.appはインターネットからダウンロードしたアプリケーションです」というエラーが表示された場合、JOSM.appまたはjosm.jnlpを右クリックし、「開く」を選択することでこれを回避することができます。同じメッセージが表示されるはずですが、今回はオプションで「開く」を選択する必要があります。これは、JOSMの初回起動時にのみ必要です。

Damaged

OS X "gatekeeper" results in this very misleading error dialog

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.

Open System Preferences and the 'Security & Privacy' options. Set 'Allow applications downloaded from:' to 'Anywhere'.

Security & Privacy settings

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.

sudo spctl --master-disable

Using brew

MacOS users may choose homebrew package manager as a universal way to install and update their JOSM instance.

Using brew cask eliminates most of the above-mentioned issues. (see. https://caskroom.github.io/).

Open Terminal and run the next commands to install or upgrade JOSM to the current tested version, respectively:

brew cask install josm
brew cask upgrade josm

既知の問題

未解決の問題 ...:

Note: See TracWiki for help on using the wiki.