Login  Register

Re: com.sun.tools.javac and NetBeans

Posted by dscho on Dec 18, 2008; 3:38am
URL: http://imagej.273.s1.nabble.com/com-sun-tools-javac-and-NetBeans-tp3694212p3694214.html

Hi,

On Wed, 17 Dec 2008, Ovidiu Dan Iancu wrote:

> I am trying to build ImageJ with NetBeans, and I get the following error:
>
> Compiling 259 source files to C:\birds\paper\ImageJ\source\build\classes
> C:\birds\paper\ImageJ\source\ij\plugin\Compiler.java:19: package
> com.sun.tools.javac does not exist
>         private static com.sun.tools.javac.Main javac;
>
> My CLASSPATH does contain the directory containing tools.jar.

That is not enough.  If you want to reference classes inside a jar, the
_jar_ has to be part of the classpath, not just the directory containing
it.

Hth,
Dscho