Skip to content

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

@Sadhikakichu

Description

@Sadhikakichu

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?

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