Re: Path problem?
Posted by
Volker Baecker on
Jan 18, 2010; 9:13am
URL: http://imagej.273.s1.nabble.com/Path-problem-tp3689668p3689677.html
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
for ImageJ the plugin (i.e. the class that implements the PlugIn
interface) must not be in any package. Therefore it can not be imported
from anywhere else.
IMHO the best thing to do is to put the code into another class that can
be in a package and to import this package into the two plugins.
Volker
Bob wrote:
> I recently started using ImageJ and Java (I am an experienced C++ programmer). I am working on WinXP, SP3, ImageJ 1.42q, and Java 1.6.0_16. I wrote my first plugin, and that went smoothly. When I wrote the second plugin, I needed methods from the first plugin, so I imported it. When I try to compile it, I get the error message "Package XYZ_ does not exist", pointing to the import line. I am guessing the problem is that the compiler cannot find the XYZ_.class file. I have added the path to the folder containing the file to the system variable PATH, but this did not resolve the problem. Does anybody know how to get the compiler to link this file?
>
> Thanks to anyone who can help.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.orgiEYEARECAAYFAktUJisACgkQ0gXPLVKexCcbkQCfc8hWquZiG8UYATtBzM6X8y5B
NpIAmgOdR8QaB/8HRk5V1YOsUiYFSPpb
=3WDY
-----END PGP SIGNATURE-----
--
passerelle antivirus du campus CNRS de Montpellier
--