Error while building from source: Plugin or class not found
Opened this issue · 0 comments
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 downloaded 3.18 snapshot (recent version in Fiji distribution), imported the project to Eclipse, clicked "Run as -> Maven build -> Run". In /target directory I found 3 jars: Stitching_-3.1.8.jar, Stitching_-3.1.8-sources.jar, and Stitching_-3.1.8-tests.jar and copied Stitching_-3.1.8 to /plugins folder of a clean ImageJ distribution. The plugin appeared in plugins menus like in Fiji, but when I click "Grid/collection stitching" I get popup window saying Plugin or class not found "Stitching_Grid". Java.lang.ClassNotFoundException: Stitching_Grid. However, if I run the plugin from Eclipse (src/test/java/Main.java, Run as -> Java Application) the plugin works OK.
What am I doing wrong? Did I miss some build options?
Best,
Serge