com.sun.tools.javac and NetBeans

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

com.sun.tools.javac and NetBeans

Ovidiu Dan Iancu
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.
Reply | Threaded
Open this post in threaded view
|

Re: com.sun.tools.javac and NetBeans

dscho
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
Reply | Threaded
Open this post in threaded view
|

Re: com.sun.tools.javac and NetBeans

Ovidiu Dan Iancu
In reply to this post by Ovidiu Dan Iancu
I actually had the _jar_ file in the CLASSPATH, so that was not the problem.

However, following the instructions at the link bellow allowed me to build:

http://www.mbl.edu/research/labs/adlc/CamAcqJ/NetBeansforIJDevelopment.html