Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sadhikakichu opened this issue May 6, 2022 · 0 comments
Open

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

Sadhikakichu opened this issue May 6, 2022 · 0 comments

Comments

@Sadhikakichu
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant