Re: problem with using external jar-files with the "compile and run" command
Posted by
Duane and Julie on
Jan 16, 2006; 5:37am
URL: http://imagej.273.s1.nabble.com/problem-with-using-external-jar-files-with-the-compile-and-run-command-tp3704060p3704061.html
Marko,
This must be your first use of an external library with Java: any jar
files used should be in the Java path.
On Mac OSX (like my system) that's usually in ~/Library/Java/
Extensions. On a Windoze system it's in the lib\ext directory of
your Java installation. If you are using the JRE that comes with
ImageJ, it's in the lib\ext directory of that installation.
I use Jama in ImageJ plugins using the above locations without problem.
Since you ARE on Windoze (from your post), if the above locations
can't be found, perhaps someone else on the list more familiar with
your operating system can chime in.
Cheers,
duane
On Jan 15, 2006, at 3:23 PM, Marko Ulbrich wrote:
> Hi all,
>
>
> I wrote a plugin for imagej, that imports a package called
> "Jama-1.0.2.jar".
> The import-statement is the following:
> import Jama.*;
>
> When using the ImageJ "Compile and run..." command for my plugin, I
> get the following error:
>
> ----------------------------------------------------------------------
> --
> Note: sun.tools.javac.Main has been deprecated.
> C:\Programme\ImageJ\plugins\Template_Matching_.java:25: Package
> Jama not found in import.
> import Jama.*;
> ^
> 1 error, 1 warning
> ----------------------------------------------------------------------
> --
>
> What can I do to use the package "Jama-1.0.2.jar".
> I copied this jar-File to my imagej-directory and to the plugins-
> directory.
>
> What else can I do?
> Thanks, Marko