Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandAction.java	(revision 27597)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandAction.java	(revision 27632)
@@ -40,6 +40,6 @@
 		if (!parentCommand.icon.equals("")) {
 			try {
-				putValue(Action.SMALL_ICON, ImageProvider.get("/../plugins/CommandLine/", parentCommand.icon));
-				putValue(Action.LARGE_ICON_KEY, ImageProvider.get("/../plugins/CommandLine/", parentCommand.icon));
+				putValue(Action.SMALL_ICON, ImageProvider.get(parentPlugin.pluginDir, parentCommand.icon));
+				putValue(Action.LARGE_ICON_KEY, ImageProvider.get(parentPlugin.pluginDir, parentCommand.icon));
 			}
 			catch (NullPointerException e) {
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 27597)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 27632)
@@ -79,4 +79,6 @@
 	protected MapFrame currentMapFrame;
 	protected MapMode previousMode;
+
+	static final String pluginDir = Main.pref.getPluginsDirectory().getAbsolutePath() + "/CommandLine/";
 
 	public CommandLine(PluginInformation info) {
