ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiming Huang <tomcat_hu...@yahoo.com>
Subject Run Ant from eclipse
Date Wed, 19 Jun 2002 04:03:52 GMT

Hi,

I am tyring to use ant from Eclipse.  I got the messages below.  Any idea how to fix this
problem?  Or how do I set the java compiler in Eclipse?  My environment is

j2sdk1.4.0, Eclipse 2.0 20020521 build, win2k

Thanks in advance.

Chiming

 

Modern compiler is not available - using classic compiler

Compiling 5 source files

Build exception: C:\users\huang\p\java\sasd\build.xml:87: 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: C:\users\huang\p\java\sasd\build.xml:87: Cannot use classic compiler, as
it is not available A common solution is to set the environment variable JAVA_HOME to your
jdk directory.

C:\users\huang\p\java\sasd\build.xml:87: 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.java: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:155)

at org.eclipse.ant.core.AntRunner.run(AntRunner.java:168)

at org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunner.java:53)

at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunner(DefaultRunnerContext.java:207)

at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultRunnerContext.java:257)

at org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.run(AntLaunchWizard.java:117)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message