Hi, Are you saying I should explicitly put tools.jar in my classpath?
Thanks On 26 Nov 2002 at 9:14, [EMAIL PROTECTED] wrote: > Peter, > > This sounds like what happened to me a few days ago. > > I found that when ant.bat calls lcp.bat (which is supposed to build a > LOCALCLASSPATH variable containing references to all the .jar files) > something doesn't work. I got around it by putting a reference to tools.jar > in my regular CLASSPATH. > > Hope this is helpful, > > Fred Yale > > > -----Original Message----- > > From: Peter Lee [SMTP:[EMAIL PROTECTED]] > > Sent: Tuesday, November 26, 2002 3:29 AM > > To: [EMAIL PROTECTED] > > Subject: Ant cannot find a javac compiler > > > > > > I got the following message complaining that it cannot find JDK. But it > > was working before > > and all the necessary paths and environment variables have been set > > properly. > > ANT_home and JAVA_HOME are not altered in any way as before, but now it > > does not work. > > What's the problem with it? > > > > > > prepare: > > > > compile: > > [javac] Compiling 3 source files to c:\classes > > > > BUILD FAILED > > file: build.xml:33: Unable to find a javac compiler; > > com.sun.tools.javac.Main is not on the classpath. > > Perhaps JAVA_HOME does not point to the JDK > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>