[[TranslatedPages(revision=116,outdated=Неполный перевод\, требуется доперевести раздел "Решение проблем")]] [[PageOutline(2-5,Оглавление)]] = Загрузка = Эта страница содержит базовую информацию по установке JOSM и решению возникающих проблем. Перед началом работы с JOSM рекомендуем прочесть страницы [wiki:Ru:Introduction Введение] и [wiki:Ru:Help Справка]. == Рекомендуемые варианты == * [[Image(source:trunk/images/openlocation.png, valign=middle, link=)]] '''Запустить [/download/josm.jnlp josm.jnlp] ([[Version(tested)]])''' - рекомендуемая версия, все платформы, автоматическое обновление ([#Troubleshootingjhlplink ''ссылка .jnlp'' не работает?]) * [[Image(source:trunk/images/download.png, valign=middle, link=)]] '''Скачать [/josm-tested.jar josm-tested.jar] (version [[Version(tested)]])''' - все платформы ([wiki:Download#Troubleshootingjarfile не удаётся запустить файл?]). О дополнительной памяти и других хитростях читайте в разделе [[Help/CommandLineOptions|Параметры командной строки]]. [[br]] == Другие варианты загрузки == ''Учтите, что [/roadmap программа обновляется очень часто], поэтому сначала всегда попробуйте запустить последнюю версию (и со свежими плагинами)''. || ||= Не зависящая от ОС =||= [https://www.java.com/en/download/faq/java_webstart.xml Web Start] =||= Windows =||= Mac OS X =||= Ubuntu, … =||= openSUSE =|| ||= **tested** [[Version(tested)]] =|| **[/josm-tested.jar jar ]** || [/download/josm.jnlp jnlp] || [/download/windows/josm-setup.exe setup.exe] ([wiki:USB_Stick переносимая]) || [/download/macosx/josm-macosx.zip package.zip] ([#MacOSXerrors ошибка при первом запуске]) || ''[#Ubuntu см. ниже]'' || ''[#openSUSE см. ниже]'' || ||= latest [[Version(latest)]] =|| [/josm-latest.jar jar] || [/download/josm-latest.jnlp jnlp] || || || ''[#Ubuntu см. ниже]'' || || ||= старые версии =|| [/download/ download/] || || || || || || === Что выбрать: latest, tested или webstart? === * ''tested'' - [wiki:Releases выходит примерно раз в месяц и протестирована на отсутствие серьёзных ошибок] * ''latest'' (разрабатываемая версия) - [wiki:Releases выходит ежедневно, может содержать ошибки] * ''.jnlp'' - если возможно, используйте версию Web Start, обеспечивающую '''автоматическое обновление'''. * Подготовьте [wiki:USB_Stick USB-накопитель] (флешку) для работы в JOSM на любом компьютере с Windows. * Для проверки версий в скриптах автоскачивания используйте страницы [/latest latest] и [/tested tested] (или [/version обе]), чтобы не загружать канал === Репозиторий openSUSE ===#openSUSE Версия JOSM tested доступна в репозитории Application:Geo. Сначала от имени root добавьте в yast или zypper репозиторий (замените версию в URL на используемую вами): {{{ zypper ar -f http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.2 Application:Geo }}} Затем просто установите пакеты **josm** и **josm-fonts**. === Репозиторий Ubuntu ===#Ubuntu Это репозиторий пакетов для Ubuntu. Он также должен работать и в других основанных на Debian (а особенно, основанных на Ubuntu) дистрибутивах, но в реальности мы не осуществляем активного тестирования и поддержки в других дистрибутивах, кроме Ubuntu. [[BR]] Примечание: в дополнение к обычной процедуре, описанной ниже, старые DEBы можно вручную скачать и щёлкнуть на них для установки из следующих каталогов: [https://josm.openstreetmap.de/apt/pool/universe/j/josm/ для josm]; [https://josm.openstreetmap.de/apt/pool/universe/j/josm-latest/ для josm-latest] Репозиторий содержит два пакета: {{{josm}}}:: ''стабильная версия''[[br]] Заменяет пакет из официального репозитория Ubuntu (там обычно очень старая версия). {{{josm-latest}}}:: ''разрабатываемая версия (ночная сборка)''[[br]] Может быть установлена одновременно с пакетом {{{josm}}}. Каталог настроек по умолчанию {{{~/.josm-latest}}}. ==== Установка ==== Отредактируйте список источников пакетов {{{/etc/apt/sources.list}}}: {{{ #!sh sudo editor /etc/apt/sources.list }}} и добавьте одну из следующих строк, в зависимости от версии Ubuntu: {{{ 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 deb https://josm.openstreetmap.de/apt yakkety universe deb https://josm.openstreetmap.de/apt zesty universe }}} Или сделайте описанное выше следующей однострочной командой: {{{ echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null }}} Для других основанных на Debian дистрибутивов добавьте следующую строку: {{{ deb https://josm.openstreetmap.de/apt alldist universe }}} {{{#!comment ### below did not work on all systems and add the following line: ` deb https://josm.openstreetmap.de/apt VERSION universe ` }}} Скачайте и зарегистрируйте [[/josm-apt.key|открытый ключ]]: {{{ #!sh wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - }}} Теперь обновите источники приложений (может понадобиться установить `sudo apt-get install apt-transport-https`) {{{ #!sh sudo apt-get update }}} и установите JOSM: {{{josm}}}:: (Можете пропустить первую строку, если не устанавливали эти пакеты ранее.) {{{ #!sh sudo apt-get remove josm josm-plugins sudo apt-get install josm }}} {{{josm-latest}}}:: {{{ #!sh sudo apt-get install josm-latest }}} == Решение проблем == === Проблемы с jar-файлом === ==== При двойном щелчке на файле ничего не происходит ==== В большинстве случаев это означает, что не установлена Java (JVM). JOSM тестируется и разрабатывается с Oracle JVM, поэтому рекомендуется получить её с сайта java.com. * https://www.java.com/en/download/ - основной ресурс, обычно процесс установки проходит без проблем * https://www.java.com/en/download/help/download_options.xml - дополнительные шаги для всех систем * https://www.java.com/en/download/help/index_installing.xml?os=All+Platforms&j=8&n=20 - поищите на их портале ответы на ваши вопросы по установке Если Java установлена, обратитесь к страницам: * https://www.java.com/en/download/help/troubleshoot_java.xml - содержит ответы на самые частые вопросы по устранению неполадок * https://www.java.com/en/download/help/ - эта страница содержит раздел "8 типичных проблем с Java", одна из которых может подойти к вашему случаю ==== Как убрать ненужные переводы из .jar ==== Если размер скачиваемого файла для вас имеет значение: * Добавьте **?lang=…** к загрузочной ссылке для обоих выпусокв, чтобы убрать неиспользуемые переводы (например, **?lang=de** скачает JOSM только с немецким языком). * **Примечание**: используйте подчёркивание для отделения [[Translations|кода языка]] от кода страны, например, **?lang=en_GB** * Добавьте **?unsigned=1**, чтобы убрать информацию о цифровой подписи кода * Если используются и **lang**, и **unsigned**, отделите их символом **&**, например, **?lang=de&unsigned=1** 10786 .jar: 10.2 Мб[[br]] 10786 .jar?lang=de: 8151 Кб [[br]] 10786 .jar?lang=de&unsigned=1: 7688 Кб === Проблема со ссылкой jnlp === Если [wiki:Download#Doubleclickonafiledoesnothing JVM уже установлена], прочтите раздел справки [https://www.java.com/en/download/faq/java_webstart.xml Web Start]. === Проблемы с JVM === ==== Не хватает памяти ==== В процессе большого сеанса редактирования вы можете получить ошибку "Недостаточно памяти". Чтобы избежать этого, можно увеличить выделенную память с помощью параметра {{{-Xmx}}}, см. раздел [[Help/CommandLineOptions|Параметры командной строки]]. ==== Выбор виртуальной машины в 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: {{{ #!sh 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\73117f8" }}} 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). === Ошибки в Mac OS X === [=#MacOSXMountainLionErrors] {{{ #!comment old section title, keeping as anchor for old links }}} [[Image(#8787:damaged_josm_app.png,align=right,margin-top=-35)]] 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. 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 the that radio button is missing from the Security & Privacy preferences panel, the following may be entered using a terminal window to make it appear: {{{ sudo spctl --master-disable }}} === Известные и ещё не устранённые проблемы с JOSM === Not closed issues about ...: * [https://josm.openstreetmap.de/query?status=!closed&type=defect&keywords=~java Java issues] - some of the bugs lead to blockers in Oracle JVM (covered at [[JavaBugs]]). * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~linux&order=priority Linux] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~ubuntu&order=priority Ubuntu] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~macos&order=priority MacOS] * [https://josm.openstreetmap.de/query?status=assigned&type=defect&status=needinfo&status=new&status=reopened&keywords=~windows&order=priority Windows] == Смотрите также == * [[Source code|Исходный код]] * [wiki:InstallNotes#Running how to run] - возможно, устаревшая страница справки