title: Image path inside an eclipse plugin
body: <p>I'm trying to refer to images inside an eclipse plugin (e.g. for icons) in the following way (from a tutorial on the eclipse FAQ website):</p>
  
  <pre><code>Bundle bundle = Platform.getBundle(PLUGIN_ID);
  Path path = new Path("icons/doodledebug-icon.png");
  URL fileURL = FileLocator.find(bundle, path, null);
  URL resolved = null;
  try {
      resolved = FileLocator.resolve(fileURL);
  } catch (IOException e) {
      throw new RuntimeException(e);
  }
  ImageDescriptor imageDescriptor = ImageDescriptor.createFromURL(resolved);
  </code></pre>
  
  <p>This works fine when testing, i.e. in the runtime eclipse application. But it leads to errors when creating an update site and using this one. The path seems to be not syntactically correct:</p>
  
  <p><code>C:\Program Files\eclipse EE indigo\file:\C:\Users\Me\.eclipse\org.eclipse.platform_3.7.0_1202875443\plugins\DoodleDebugServer-Plugin_1.0.0.201208241809.jar!\icons\doodledebug-icon.png</code></p>
  
  <p>Why is this breaking when executed in a jar, or how should I do this correctly?</p>