Title: RE: Please help - "Cannot use classic compiler"

Kevin,
        Thanks for your help. I finally solved the 'classic compiler' problem by removing all the jars out of the
jre/lib/ext and placing only those that were needed explicitly on the classpath.

--
Thanks much
Jacob


-----Original Message-----
From: Kevin Mukhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: Please help - "Cannot use classic compiler"


> Jacob Thomas wrote:
>
> While building ANT 1.2.1, got the following error:
>
> BUILD FAILED
>
> C:\Jakarta\jakarta-ant\build.xml:87: Cannot use classic compiler, as
> it is not
> available

I had this problem as well. I tried following all the FAQ suggestions
and nothing worked. My JAVA_HOME was set, tools.jar was in the
classpath, I tried messing with ant.bat, I looked at the source code for
javac.java. None of those worked.

What finally worked for me was to put tools.jar into the extension
directory. With Java 2 (either jdk 1.2 or jdk 1.3) you no longer need to
put libraries on the classpath. If you put the .jar file into a special
directory, then the compiler and JVM pick up the libraries
automatically. If your java.exe is in %JAVA_HOME%\bin then the extension
directory is %JAVA_HOME%\jre\lib\ext.

Kevin Mukhar

Reply via email to