Login  Register

Re: How to link an external package to plugin in ImageJ?

Posted by Wayne Rasband on Jan 29, 2008; 9:01pm
URL: http://imagej.273.s1.nabble.com/How-to-link-an-external-package-to-plugin-in-ImageJ-tp3697384p3697388.html

The "Compile and Run" command in ImageJ 1.39r automatically adds JAR
files (e.g., Jama.jar) in the plugins folder, or subfolder, to the
compiler's classpath. The name of the JAR file must end in ".jar" and
there can't be an underscore in the name. A preview of v1.39r is
available at <http://rsb.info.nih.gov/ij/ij.jar>.

-wayne

> Hi All,
>
> Sorry to bother if you are not interested.  I want to do some matrix
> operation by ImageJ plugin.  I import the package Jama.jar since
> it does a lot matrix operation.  I downloaded it to
> ImageJ/jre/lib/Jama.jar,
> and I use "import Jama.*" in the plugin head.  But the compiler told
> me that
>
> "package Jama does not exist
> import Jama.*; "
>
> I think it is a link problem.  How to make the program
> knows where is the package Jama?
>
> Thanks a lot,
> Jiajian
>