fiji / Stitching

Fiji's Stitching plugins reconstruct big images from tiled input images.
http://imagej.net/Stitching
GNU General Public License v2.0
96 stars 64 forks source link

Exception in thread "main" while run the source #68

Open Sadhikakichu opened 2 years ago

Sadhikakichu commented 2 years ago

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?