| Version 26 (modified by , 8 years ago) ( diff ) |
|---|
Translation is incomplete
他の言語:
目次
ダウンロード
このページでは、JOSMの基本的なインストール手順とトラブルシューティング情報を提供しています。 JOSMの作業を開始するには、JOSMことはじめとメインヘルプページを参照してください。 非常に複雑な問題については、Installation Notes (en)を参照してください。
推奨オプション
josm.jnlpを起動する(最新のテスト済みバージョン)
推奨バージョン、すべてのプラットフォーム、最新のテスト済みバージョンへの自動アップデート (how to start)。
josm-tested.jarをダウンロードする(テスト済みバージョン 19481)
すべてのプラットフォーム (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 |
| テスト済み版 19481 | josm.jnlp | josm-tested.jar | setup.exe (下記参照) | package.zip (下記参照) | 下記参照 | 下記参照 |
| 開発版 19539 | latest.jnlp | josm-latest.jar | 下記参照 | |||
| 過去バージョン | download/ | dists/ | ||||
スクリプトを実行する際には、最新、テスト済み、またはその両方をチェックして、ダウンロード帯域幅を減らしてください。
Strip translations
ダウンロードサイズが問題である場合、テストされたバージョンのより小さいファイルが利用可能です。英語のみを含むダウンロードの場合、?lang=enをURLに追加します。To include one translation replace en with the language code (en) you want (lowercase first character, supported languages only). You can further reduce the file size by stripping the signing information off with appending ?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
その後、josmとjosm-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
When you double-click on a jar file and nothing happens in most cases this means Java isn't installed.
JOSM is tested with Oracles variant, so we recommend to get Java from their pages for manual downloads or intermediate versions. But first give the Java already distributed with the operating system a try, for example.
When choosing a download keep in mind:
- 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.
- 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.
- 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.
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).
Testing Java
Checks if Java is installed and why JOSM does not start (example mainly for MS Windows).
- Download josm-tested.jar to your desktop.
- Open a Command Prompt aka Terminal
- Type
cd %homepath%? and typecd Desktop? - Type
java -version? Three lines with the version data should appear. If you see something else then Java is not properly installed. - Type
java -jar josm-tested.jar?. Now JOSM should run, started from the Command Line. - Quit JOSM.
- Type
josm-tested.jar?. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files.
Web Start
Launching JOSM via Web Start has many more error causes than the traditional way with first downloading a jar file and afterwards starting it. So please test Java first and then run the tests described below or elsewhere Web Start issues.
Testing Web Start
- Download josm.jnlp to your desktop.
- Open a Terminal and move to the Desktop as above
- Type
javaws josm.jnlp?. This should initially download JOSM, serve a security dialog and then launch JOSM.
Virtual Machine
メモリ不足
Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown. Wrongly chosen values can decrease JOSM performance.
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.
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
Using josm-setup.exe for installation on Microsoft Windows does the following:
- Puts the files
josm-tested.jarandjosm.exein directory chosen by the user, default isC:\Program Files (86)\JOSM\ - Suggests to register josm.exe as target for the file extensions
*.osmand*.gpx. - 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).
- Asks if the Plug-Ins Imagery offset database and Turn restrictions should be provided.
- Adds uninstall data at the appropriate places.
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 has two mechanisms to protect you from using JOSM: File Quarantine and Gatekeeper.
Downloaded from the internet
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.
Damaged
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'.
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
既知の問題
閉じられていない問題 ...:




