8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7405f20 commit 10cfab2Copy full SHA for 10cfab2
src/main/java/Process_Pixels.java
@@ -176,7 +176,7 @@ public static void main(String[] args) {
176
// set the plugins.dir property to make the plugin appear in the Plugins menu
177
Class<?> clazz = Process_Pixels.class;
178
String url = clazz.getResource("/" + clazz.getName().replace('.', '/') + ".class").toString();
179
- String pluginsDir = url.substring(5, url.length() - clazz.getName().length() - 6);
+ String pluginsDir = url.substring("file:".length(), url.length() - clazz.getName().length() - ".class".length());
180
System.setProperty("plugins.dir", pluginsDir);
181
182
// start ImageJ
0 commit comments