| 164 | | 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. |
| 165 | | |
| 166 | | 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). |
| 167 | | |
| 168 | | 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!) |
| 169 | | |
| 170 | | Example of an edited commandline for the shortcut created on the windows desktop after running JOSM just once from the JNMP and exiting: |
| | 164 | Учтите, что в Windows некоторые браузеры могут устанавливать свои собственные JRE только в 32-битном режиме, а также собственные версии инструмента Javawebstart куда-то ещё с другими файловыми ассоциациями. Это может привести к тому, что ваш JNLP запустится в этом альтернативном JRE, так как он запустит неправильную версию Javawebstart, поддерживающую только 32-битные виртуальные машины, а иногда и собранную с ограниченной поддержкой параметров виртуальной машины и максимальным размером VM, не превышающим 256 МБ. |
| | 165 | |
| | 166 | Проверьте, например, нет ли другого javawebstart в {{{\Windows\SysWow64}}}. Вам он не понадобится (панель управления Java не обнаружит его), и его можно без вреда удалить. Выполните очистку и оставьте только последнюю версию JRE (одну для 32-битного режима, другую для 64-битного). |
| | 167 | |
| | 168 | Для ярлыков, созданных на рабочем столе для JNLP и запуска Javawebstart (из {{{\windows\system32}}}), убедитесь, они передают виртуальной машине параметры, перед которыми стоит ключ -J и между ключом и параметром VM нет пробела. Если у вас установлены и 32-битная, и 64-битная версии, вы должны указать опцию "{{{-d64}}}", если хотите выбрать в качестве предпочтительной 64-битную машину. Заметьте, что в некоторых страницах документации Oracle опция указана с неправильной заглавной буквой "-D64"!) |
| | 169 | |
| | 170 | Пример отредактированной командной строки для ярлыка, созданного на рабочем столе после первого запуска JOSM из JNMP и выхода из программы: |
| 185 | | 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. |
| 186 | | |
| 187 | | 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: |
| 188 | | |
| | 185 | Если вы получаете ошибку "'JOSM.app' is an application downloaded from the internet.", то её можно обойти **щелчком правой кнопкой на JOSM.app** или josm.jnlp и выбором 'open'. Вы увидите то же самое сообщение, но на этот раз с возможностью "Открыть". Это необходимо только при первом запуске JOSM. |
| | 186 | |
| | 187 | Если вы видите сообщение об ошибке "'JOSM.app' is damaged and can't be opened. You should move it to the Trash", то нужно временно отключить Gatekeeper. Откройте в настройках системы параметры 'Security & Privacy'. Задайте для 'Allow applications downloaded from:' значение 'Anywhere'. |
| | 188 | [[Image(wiki:Download:SecurityPrivacy.png)]] |
| | 189 | |
| | 190 | Если эта радиокнопка отсутствует в панели 'Security & Privacy', то для её появления можно ввести в окне терминала: |