Error when using jdistlib package

imagej

#1

Hi all,

I am trying to create a plug-in, which uses the package jdistlib. It’s included in my plug-in dependency. However, once I’ve created the .jar plug-in and installed it into ImageJ, when I run it, I get the error message below:

(Fiji Is Just) ImageJ 2.0.0-rc-68/1.52g; Java 1.8.0_66 [64-bit]; Mac OS X 10.13.6; 779MB of 3641MB (21%)

java.lang.NoClassDefFoundError: net/sourceforge/jdistlib/disttest/NormalityTest
at com.mycompany.imagej.Remover.run(Remover.java:543)
at ij.IJ.runUserPlugIn(IJ.java:228)
at ij.IJ.runPlugIn(IJ.java:192)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: net.sourceforge.jdistlib.disttest.NormalityTest
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 6 more

What have I been doing wrong? I also use the Weka package in the same way, and it seems to work alright, but I’m implementing a new feature which uses jdistlib, but this does not work.

Any help is appreciated!