[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Ant Exceptions

Go to Window->Preferences->External Tools->Ant, on the Classpath tab make
sure that tools.jar from your JDK installation is included.


"Brandon Goodin" <mail@xxxxxxxx> wrote in message
news:ak8m42$6fu$1@xxxxxxxxxxxxxxxx
> I am getting the following exception when i try to use the "Run Ant..."
from
> within eclipse. I checked JAVA_HOME it is fine. Not sure why it doesn't
> work. I am a newbie to Eclipse. I am running Win2k, Elipse2.0,  JDK1.4.01.
> Ant works fine when i run it from the command line or in Netbeans. So any
> help would be great.
>
> Brandon Goodin
>
> Modern compiler is not available - using classic compiler
> Compiling 24 source files to D:\eclipse\workspace\core\build
> Build exception: D:\eclipse\workspace\core\build-core.xml:21: Cannot use
> classic compiler, as it is not available A common solution is to set the
> environment variable JAVA_HOME to your jdk directory.
> Build exception: D:\eclipse\workspace\core\build-core.xml:21: Cannot use
> classic compiler, as it is not available A common solution is to set the
> environment variable JAVA_HOME to your jdk directory.
> D:\eclipse\workspace\core\build-core.xml:21: Cannot use classic compiler,
as
> it is not available A common solution is to set the environment variable
> JAVA_HOME to your jdk directory.
> at
org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:557)
> at org.apache.tools.ant.Task.perform(Task.java:217)
> at org.apache.tools.ant.Target.execute(Target.java:184)
> at org.apache.tools.ant.Target.performTasks(Target.java:202)
> at org.apache.tools.ant.Project.executeTarget(Project.java:601)
> at org.apache.tools.ant.Project.executeTargets(Project.java:560)
> at
>
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
> va:269)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:188)
> at
>
org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunn
> er.java:58)
> at
>
org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunne
> r(DefaultRunnerContext.java:334)
> at
>
org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultR
> unnerContext.java:384)
> at
>
org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.run(AntLaunchWiza
> rd.java:116)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext
> .java:98)
> Build exception: D:\eclipse\workspace\core\build-core.xml:21: Cannot use
> classic compiler, as it is not available A common solution is to set the
> environment variable JAVA_HOME to your jdk directory.
>
>