Run Ant Compilation Error [message #52414] |
Sun, 13 April 2003 00:26 |
Eclipse User |
|
|
|
Originally posted by: qsu.cj.com
Hi,
I'm new with eclipse. I opened a working project in eclipse, and tried to
use "run ant" on "build.xml", it gives me an error msg:
"Modern compiler is not available - using classic compiler
Build exception: C:\eclipse\ex2\build.xml:68: Cannot use classic compiler,
as it is not available A common solution is to set the environment
variable JAVA_HOME to your jdk directory."
However, I know that the variable JAVA_HOME is set up correctly in my
system. And, if I run ant from command line, it works. Aslo, if I create
a new external tool that runs from local installed ant and it works!
I believe it must be some configuration issue. Any suggestions?
Thanks.
Qian
|
|
|
Re: Run Ant Compilation Error [message #52426 is a reply to message #52414] |
Sun, 13 April 2003 01:19 |
Darin Swanson Messages: 2386 Registered: July 2009 |
Senior Member |
|
|
Qian,
You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
preference pages.
Another option is to start Eclipse using the -vm arg so that Eclipse is
launched using your JDK install VM. This way Eclipse will automatically add
the
tools.jar to the Ant runtime classpath.
HTH
Darins
BTW in the future please ask these types of questions on the eclipse.tools
newsgroup
"Qian Su" <qsu@cj.com> wrote in message news:b7aash$3sb$1@rogue.oti.com...
> Hi,
>
> I'm new with eclipse. I opened a working project in eclipse, and tried to
> use "run ant" on "build.xml", it gives me an error msg:
>
> "Modern compiler is not available - using classic compiler
> Build exception: C:\eclipse\ex2\build.xml:68: Cannot use classic compiler,
> as it is not available A common solution is to set the environment
> variable JAVA_HOME to your jdk directory."
>
> However, I know that the variable JAVA_HOME is set up correctly in my
> system. And, if I run ant from command line, it works. Aslo, if I create
> a new external tool that runs from local installed ant and it works!
>
> I believe it must be some configuration issue. Any suggestions?
>
> Thanks.
>
> Qian
>
>
>
|
|
|
Re: Run Ant Compilation Error [message #52458 is a reply to message #52426] |
Sun, 13 April 2003 17:06 |
Eclipse User |
|
|
|
Originally posted by: qsu.cj.com
Thanks!
Qian
Darin Swanson wrote:
> Qian,
> You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
> preference pages.
> Another option is to start Eclipse using the -vm arg so that Eclipse is
> launched using your JDK install VM. This way Eclipse will automatically add
> the
> tools.jar to the Ant runtime classpath.
> HTH
> Darins
> BTW in the future please ask these types of questions on the eclipse.tools
> newsgroup
> \"Qian Su\" <qsu@cj.com> wrote in message news:b7aash$3sb$1@rogue.oti.com...
> > Hi,
> >
> > I\'m new with eclipse. I opened a working project in eclipse, and tried to
> > use \"run ant\" on \"build.xml\", it gives me an error msg:
> >
> > \"Modern compiler is not available - using classic compiler
> > Build exception: C:\\eclipse\\ex2\\build.xml:68: Cannot use classic
compiler,
> > as it is not available A common solution is to set the environment
> > variable JAVA_HOME to your jdk directory.\"
> >
> > However, I know that the variable JAVA_HOME is set up correctly in my
> > system. And, if I run ant from command line, it works. Aslo, if I create
> > a new external tool that runs from local installed ant and it works!
> >
> > I believe it must be some configuration issue. Any suggestions?
> >
> > Thanks.
> >
> > Qian
> >
> >
> >
|
|
|
Re: Run Ant Compilation Error [message #592936 is a reply to message #52414] |
Sun, 13 April 2003 01:19 |
Darin Swanson Messages: 2386 Registered: July 2009 |
Senior Member |
|
|
Qian,
You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
preference pages.
Another option is to start Eclipse using the -vm arg so that Eclipse is
launched using your JDK install VM. This way Eclipse will automatically add
the
tools.jar to the Ant runtime classpath.
HTH
Darins
BTW in the future please ask these types of questions on the eclipse.tools
newsgroup
"Qian Su" <qsu@cj.com> wrote in message news:b7aash$3sb$1@rogue.oti.com...
> Hi,
>
> I'm new with eclipse. I opened a working project in eclipse, and tried to
> use "run ant" on "build.xml", it gives me an error msg:
>
> "Modern compiler is not available - using classic compiler
> Build exception: C:\eclipse\ex2\build.xml:68: Cannot use classic compiler,
> as it is not available A common solution is to set the environment
> variable JAVA_HOME to your jdk directory."
>
> However, I know that the variable JAVA_HOME is set up correctly in my
> system. And, if I run ant from command line, it works. Aslo, if I create
> a new external tool that runs from local installed ant and it works!
>
> I believe it must be some configuration issue. Any suggestions?
>
> Thanks.
>
> Qian
>
>
>
|
|
|
Re: Run Ant Compilation Error [message #592951 is a reply to message #52426] |
Sun, 13 April 2003 17:06 |
Qian Su Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Thanks!
Qian
Darin Swanson wrote:
> Qian,
> You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
> preference pages.
> Another option is to start Eclipse using the -vm arg so that Eclipse is
> launched using your JDK install VM. This way Eclipse will automatically add
> the
> tools.jar to the Ant runtime classpath.
> HTH
> Darins
> BTW in the future please ask these types of questions on the eclipse.tools
> newsgroup
> \"Qian Su\" <qsu@cj.com> wrote in message news:b7aash$3sb$1@rogue.oti.com...
> > Hi,
> >
> > I\'m new with eclipse. I opened a working project in eclipse, and tried to
> > use \"run ant\" on \"build.xml\", it gives me an error msg:
> >
> > \"Modern compiler is not available - using classic compiler
> > Build exception: C:\\eclipse\\ex2\\build.xml:68: Cannot use classic
compiler,
> > as it is not available A common solution is to set the environment
> > variable JAVA_HOME to your jdk directory.\"
> >
> > However, I know that the variable JAVA_HOME is set up correctly in my
> > system. And, if I run ant from command line, it works. Aslo, if I create
> > a new external tool that runs from local installed ant and it works!
> >
> > I believe it must be some configuration issue. Any suggestions?
> >
> > Thanks.
> >
> > Qian
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03809 seconds