У меня, возможно, плагин не работает. По крайней мере, при наборе команды, варианты команд не выводятся.
Отрабатывают команды, или нет, сказть не могу, т.к. Питона нет.
Система: Win XP 32, Loaded CommandLine, version 25200
Пробовал вручную обновлять, jar файлы идеентичны, ничего не изменилось.
PS: Стандартный набор команд установлен, но как уже писал, Питона нет.
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-04-14 01:31:50
Last Changed Author: bastiK
Revision: 4021
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-04-13 22:43:46 +0200 (Wed, 13 Apr 2011)
Last Changed Rev: 4021
GET http://api.openstreetmap.org/api/capabilities... OK
Соединение с http://api.openstreetmap.org/api установлено используя протокол 0.6
загрузка модуля 'openstreetbugs' (версия 25664)
загрузка модуля 'PicLayer' (версия 25219)
Silent shortcut conflict: 'menu:PicLayer' moved by 'menu:Imagery' to 'Alt+A'.
загрузка модуля 'CommandLine' (верси 25829)
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/arc.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/bezier.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/circle.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/copy.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/cut.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/fillet.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/mirror.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/move.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/offset.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/regexp.xml
file:///C:/Program%20Files/josm/JOSM/plugins/CommandLine/replace.xml
Попытался сделать круг. Результат:
Silent shortcut conflict: 'subwindow:conflict' moved by 'menu:Commands' to 'Alt+Shift+C'.
python circle.py 37.621895969751904,55.75326683180708 10 12
java.io.IOException: Cannot run program "python" (in directory "C:\Program Files\josm\JOSM\plugins\CommandLine"): CreateProcess error=2, ?? ??????? ????? ????????? ????
at java.lang.ProcessBuilder.start(Unknown Source)
at CommandLine.CommandLine.runTool(CommandLine.java:461)
at CommandLine.CommandLine.loadParameter(CommandLine.java:399)
at CommandLine.CommandLine$1.processKeyEvent(CommandLine.java:116)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(UnknownSource)
at java.security.AccessControlContext$1.doIntersectionPrivilege(UnknownSource)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(UnknownSource)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=2, ?? ??????? ????? ????????? ????
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 36 more
Ошибка выполнения скрипта: python circle.py 37.621895969751904,55.75326683180708 10 12
Cannot run program "python" (in directory "C:\Program Files\josm\JOSM\plugins\CommandLine"): CreateProcess error=2, ?? ??????? ????? ????????? ????
[Ljava.lang.StackTraceElement;@bc8690[/code]
Под питон 2.7 не проверялось. Гарантированно работает только на 2.5 и 3 питонах. :3
Во всяком случае, я не представляю, как питон может не найди projections, когда он лежит в одной папке с circle.py
В последних весиях, при старте, вылазит предложение отключить модуль:
Exception in thread "main" java.lang.NoClassDefFoundError: josm-tested/jar
Caused by: java.lang.ClassNotFoundException: josm-tested.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: josm-tested.jar. Program will exit.
[ivan@localhost JOSM]$ java -jar josm-tested.jar
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-01-11 02:31:59
Last Changed Author: jttt
Revision: 4784
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-01-10 22:54:24 +0100 (Tue, 10 Jan 2012)
Last Changed Rev: 4784
Failed to locate image 'Curves.jar/'
Соединение с http://api.openstreetmap.org/api установлено используя протокол 0.6
загрузка модуля 'PicLayer' (версия 27403)
загрузка модуля 'CommandLine' (версия 27355)
file:///home/ivan/.josm/plugins/CommandLine/copy.xml
file:///home/ivan/.josm/plugins/CommandLine/offset.xml
file:///home/ivan/.josm/plugins/CommandLine/mirror.xml
file:///home/ivan/.josm/plugins/CommandLine/replace.xml
file:///home/ivan/.josm/plugins/CommandLine/cut.xml
file:///home/ivan/.josm/plugins/CommandLine/regexp.xml
file:///home/ivan/.josm/plugins/CommandLine/arc.xml
file:///home/ivan/.josm/plugins/CommandLine/bezier.xml
file:///home/ivan/.josm/plugins/CommandLine/fillet.xml
file:///home/ivan/.josm/plugins/CommandLine/move.xml
file:///home/ivan/.josm/plugins/CommandLine/circle.xml
org.openstreetmap.josm.plugins.PluginException: В модуле CommandLine произошла ошибка
at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:281)
at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:475)
at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:533)
at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:572)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:248)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:272)
... 4 more
Caused by: java.lang.RuntimeException: Случилась беда: не удалось обнаружить изображение 'copy.png'. Это серьёзная проблема конфигурации. JOSM прекращает работу.
at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:225)
at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:246)
at CommandLine.CommandAction.<init>(CommandAction.java:42)
at CommandLine.CommandLine.loadCommands(CommandLine.java:243)
at CommandLine.CommandLine.<init>(CommandLine.java:191)
... 9 more
Это у меня проблема или вообще?
(на всякий случай обновил команды - тоже самое)