Skip to content

Error while building from source: Plugin or class not found #64

@SergeTauger

Description

@SergeTauger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions