Login  Register

Re: Path problem?

Posted by Chris Mawata on Jan 18, 2010; 6:35pm
URL: http://imagej.273.s1.nabble.com/Path-problem-tp3689668p3689676.html

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.
>
>  
Classes are searched for on the CLASSPATH (rather than PATH). You could
make a system variable called path but it is better to define the
classpath in your IDE.