I wanted to try optimizing the plugin for my task (stitching of hundreds RGB images, currently I get out of memory). As I am new to Maven, I started from building already working project from source.
I imported the project to Eclipse, clicked "Run as -> Maven build -> Run". In /target directory I found 3 jars: Stitching-3.1.9.jar, Stitching-3.1.9-sources.jar, and Stitching-3.1.9-tests.jar and i copied Stitching-3.1.9 to /plugins folder . However, if I run the plugin from Eclipse (src/test/java/Main.java, Run as -> Java Application) an exception displayed in console as...
Exception in thread "main" java.lang.IllegalArgumentException: Cannot add class path from ClassLoader of type jdk.internal.loader.ClassLoaders$AppClassLoader
at net.imagej.patcher.LegacyEnvironment.addPluginClasspath(LegacyEnvironment.java:275)
at fiji.Debug.runFilter(Debug.java:85)
at fiji.Debug.runFilter(Debug.java:68)
at fiji.Debug.run(Debug.java:55)
at Main.main(Main.java:27)
What am I doing wrong? Did I miss some build options?
I wanted to try optimizing the plugin for my task (stitching of hundreds RGB images, currently I get out of memory). As I am new to Maven, I started from building already working project from source.
I imported the project to Eclipse, clicked "Run as -> Maven build -> Run". In /target directory I found 3 jars: Stitching-3.1.9.jar, Stitching-3.1.9-sources.jar, and Stitching-3.1.9-tests.jar and i copied Stitching-3.1.9 to /plugins folder . However, if I run the plugin from Eclipse (src/test/java/Main.java, Run as -> Java Application) an exception displayed in console as... Exception in thread "main" java.lang.IllegalArgumentException: Cannot add class path from ClassLoader of type jdk.internal.loader.ClassLoaders$AppClassLoader at net.imagej.patcher.LegacyEnvironment.addPluginClasspath(LegacyEnvironment.java:275) at fiji.Debug.runFilter(Debug.java:85) at fiji.Debug.runFilter(Debug.java:68) at fiji.Debug.run(Debug.java:55) at Main.main(Main.java:27)
What am I doing wrong? Did I miss some build options?