Has anyone gotten Ant to work under Eclipse? [message #74927] |
Fri, 11 July 2003 16:30  |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
Vanilla configuration: Windows 2000, Eclipse 2.1.1, Sun JDK 1.4.2, Ant
1.5.3-1, and a very basic ant build file that works fine from the command
line.
Ant Home is set: C:\Java\apache-ant-1.5.3-1
Ant Runtime classpath is configured as:
C:\Java\j2sdk1.4.2\lib\dt.jar
C:\Java\j2sdk1.4.2\lib\htmlconverter.jar
C:\Java\j2sdk1.4.2\lib\tools.jar
C:\Java\apache-ant-1.5.3-1\lib\ant.jar
C:\Java\apache-ant-1.5.3-1\lib\optional.jar
C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar
I removed xercesImpl.jar since I've read many posts and articles that said
this causes problems.
When I attempt to build I get:
BUILD FAILED: java.lang.VerifyError:
(class:org/apache/xerces/parsers/IntegratedParserConfigurati on, method:
configurePipeline signature: ()V) Incompatible type for getting or setting
field
Total time: 203 milliseconds
I apologize for this repost but I have spent considerable time reading
newsgroups, websites, and articles and can't find out what is wrong.
Any assistance is appreciated. Thanks!
|
|
|
Re: Has anyone gotten Ant to work under Eclipse? [message #74944 is a reply to message #74927] |
Fri, 11 July 2003 15:27   |
Eclipse User |
|
|
|
No :-)
Just kidding, :-)
I believe there are thousands of people who have had success and I think I
have replied to this with a path to success... but who knows with how the
newsgroup has been working of late.
Remove C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar as well
As well, because of manifest entries in the ant.jar and the optional.jar you
will need to physically move the xerces jars to a different directory than
the ant and optional.jars.
BTW, why are you not just using the default configuration? Ant comes with
Ant 1.5.3 as a plugin (org.apache.ant) and if you use the default you would
not have all of these problems. We do try to make life easy :-)
Darins
"Roger Wilco" <wilco909@hotmail.com> wrote in message
news:bemvkh$are$1@eclipse.org...
> Vanilla configuration: Windows 2000, Eclipse 2.1.1, Sun JDK 1.4.2, Ant
> 1.5.3-1, and a very basic ant build file that works fine from the command
> line.
>
> Ant Home is set: C:\Java\apache-ant-1.5.3-1
>
> Ant Runtime classpath is configured as:
> C:\Java\j2sdk1.4.2\lib\dt.jar
> C:\Java\j2sdk1.4.2\lib\htmlconverter.jar
> C:\Java\j2sdk1.4.2\lib\tools.jar
> C:\Java\apache-ant-1.5.3-1\lib\ant.jar
> C:\Java\apache-ant-1.5.3-1\lib\optional.jar
> C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar
>
> I removed xercesImpl.jar since I've read many posts and articles that said
> this causes problems.
>
> When I attempt to build I get:
>
> BUILD FAILED: java.lang.VerifyError:
> (class:org/apache/xerces/parsers/IntegratedParserConfigurati on, method:
> configurePipeline signature: ()V) Incompatible type for getting or setting
> field
> Total time: 203 milliseconds
>
>
> I apologize for this repost but I have spent considerable time reading
> newsgroups, websites, and articles and can't find out what is wrong.
>
> Any assistance is appreciated. Thanks!
>
>
|
|
|
Re: Has anyone gotten Ant to work under Eclipse? [message #75266 is a reply to message #74944] |
Sat, 12 July 2003 16:43   |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
I removed xml-apis.jar and still get the exact same error.
I tried with the default configuration and got some other error. I have
ended up with my current configuration based on reading many posts and
articles. Believe me, if the default configuration worked, I would be very
happy to stick with that.
Is there any way to revert back to the default? Is there a preferences file
to delete or maybe a complete reinstall of Ant?
Thanks for the reply!
"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:ben315$ekv$1@eclipse.org...
> No :-)
> Just kidding, :-)
> I believe there are thousands of people who have had success and I think
I
> have replied to this with a path to success... but who knows with how the
> newsgroup has been working of late.
>
> Remove C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar as well
> As well, because of manifest entries in the ant.jar and the optional.jar
you
> will need to physically move the xerces jars to a different directory than
> the ant and optional.jars.
>
> BTW, why are you not just using the default configuration? Ant comes with
> Ant 1.5.3 as a plugin (org.apache.ant) and if you use the default you
would
> not have all of these problems. We do try to make life easy :-)
>
> Darins
>
> "Roger Wilco" <wilco909@hotmail.com> wrote in message
> news:bemvkh$are$1@eclipse.org...
> > Vanilla configuration: Windows 2000, Eclipse 2.1.1, Sun JDK 1.4.2, Ant
> > 1.5.3-1, and a very basic ant build file that works fine from the
command
> > line.
> >
> > Ant Home is set: C:\Java\apache-ant-1.5.3-1
> >
> > Ant Runtime classpath is configured as:
> > C:\Java\j2sdk1.4.2\lib\dt.jar
> > C:\Java\j2sdk1.4.2\lib\htmlconverter.jar
> > C:\Java\j2sdk1.4.2\lib\tools.jar
> > C:\Java\apache-ant-1.5.3-1\lib\ant.jar
> > C:\Java\apache-ant-1.5.3-1\lib\optional.jar
> > C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar
> >
> > I removed xercesImpl.jar since I've read many posts and articles that
said
> > this causes problems.
> >
> > When I attempt to build I get:
> >
> > BUILD FAILED: java.lang.VerifyError:
> > (class:org/apache/xerces/parsers/IntegratedParserConfigurati on, method:
> > configurePipeline signature: ()V) Incompatible type for getting or
setting
> > field
> > Total time: 203 milliseconds
> >
> >
> > I apologize for this repost but I have spent considerable time reading
> > newsgroups, websites, and articles and can't find out what is wrong.
> >
> > Any assistance is appreciated. Thanks!
> >
> >
>
>
|
|
|
Re: Has anyone gotten Ant to work under Eclipse? [message #75300 is a reply to message #75266] |
Sat, 12 July 2003 18:55   |
Eclipse User |
|
|
|
Did you move the Xerces JARs from the physical location?
What other error did you get with the default configuration?
To restore the default settings, hit restore defaults on the relevant
preferences pages.
HTH
Darins
"Roger Wilco" <wilco909@hotmail.com> wrote in message
news:bepkpe$b83$1@eclipse.org...
> I removed xml-apis.jar and still get the exact same error.
>
> I tried with the default configuration and got some other error. I have
> ended up with my current configuration based on reading many posts and
> articles. Believe me, if the default configuration worked, I would be very
> happy to stick with that.
>
> Is there any way to revert back to the default? Is there a preferences
file
> to delete or maybe a complete reinstall of Ant?
>
> Thanks for the reply!
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:ben315$ekv$1@eclipse.org...
> > No :-)
> > Just kidding, :-)
> > I believe there are thousands of people who have had success and I
think
> I
> > have replied to this with a path to success... but who knows with how
the
> > newsgroup has been working of late.
> >
> > Remove C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar as well
> > As well, because of manifest entries in the ant.jar and the optional.jar
> you
> > will need to physically move the xerces jars to a different directory
than
> > the ant and optional.jars.
> >
> > BTW, why are you not just using the default configuration? Ant comes
with
> > Ant 1.5.3 as a plugin (org.apache.ant) and if you use the default you
> would
> > not have all of these problems. We do try to make life easy :-)
> >
> > Darins
> >
> > "Roger Wilco" <wilco909@hotmail.com> wrote in message
> > news:bemvkh$are$1@eclipse.org...
> > > Vanilla configuration: Windows 2000, Eclipse 2.1.1, Sun JDK 1.4.2, Ant
> > > 1.5.3-1, and a very basic ant build file that works fine from the
> command
> > > line.
> > >
> > > Ant Home is set: C:\Java\apache-ant-1.5.3-1
> > >
> > > Ant Runtime classpath is configured as:
> > > C:\Java\j2sdk1.4.2\lib\dt.jar
> > > C:\Java\j2sdk1.4.2\lib\htmlconverter.jar
> > > C:\Java\j2sdk1.4.2\lib\tools.jar
> > > C:\Java\apache-ant-1.5.3-1\lib\ant.jar
> > > C:\Java\apache-ant-1.5.3-1\lib\optional.jar
> > > C:\Java\apache-ant-1.5.3-1\lib\xml-apis.jar
> > >
> > > I removed xercesImpl.jar since I've read many posts and articles that
> said
> > > this causes problems.
> > >
> > > When I attempt to build I get:
> > >
> > > BUILD FAILED: java.lang.VerifyError:
> > > (class:org/apache/xerces/parsers/IntegratedParserConfigurati on,
method:
> > > configurePipeline signature: ()V) Incompatible type for getting or
> setting
> > > field
> > > Total time: 203 milliseconds
> > >
> > >
> > > I apologize for this repost but I have spent considerable time reading
> > > newsgroups, websites, and articles and can't find out what is wrong.
> > >
> > > Any assistance is appreciated. Thanks!
> > >
> > >
> >
> >
>
>
|
|
|
|
|
Re: Has anyone gotten Ant to work under Eclipse? [message #76445 is a reply to message #76114] |
Tue, 15 July 2003 21:06  |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
Wow, that actually works!!!
I swear I checked all the FAQs and did all the searches.
Thank you very much for your help!
"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:bf19m5$203$1@eclipse.org...
> The other most frequently asked Ant questions :-)
>
> The JAVA_HOME error message is from Apache Ant which does not "know" that
it
> has been integrated within Eclipse.
>
> You need to have a jdk tools.jar on the Ant runtime classpath using the
> Ant preference pages.
>
> This is done for you automatically if you start Eclipse using a JVM from a
> JDK install (as opposed to a JRE install). This is accomplished using
> the -vm arg.
>
> Alternately, you can set the build.compiler property to
> "org.eclipse.jdt.core.JDTCompilerAdapter" if you wish to use Eclipse's
> internal compiler for your build
>
> HTH
> Darins
>
> "Roger Wilco" <wilco909@hotmail.com> wrote in message
> news:bf19ga$1pn$1@eclipse.org...
> > I didn't move any JARs from their physical locations.
> >
> > I did I Restore Defaults and I get:
> >
> > compile:
> > [javac] Compiling 7 source files to C:\Program
> > Files\eclipse\workspace\DNS Simulator\build
> > [javac] BUILD FAILED: file:C:/Program Files/eclipse/workspace/DNS
> > Simulator/build.xml:18: 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
> > Total time: 578 milliseconds
> >
> > Manually setting JAVA_HOME from the command prompt before running
Eclipse
> > doesn't change anything.
> >
> > Thanks for your help!
> >
> > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > news:beq3fb$ks5$1@eclipse.org...
> > > Did you move the Xerces JARs from the physical location?
> > >
> > > What other error did you get with the default configuration?
> > >
> > > To restore the default settings, hit restore defaults on the relevant
> > > preferences pages.
> > >
> > > HTH
> > > Darins
> > >
> >
> >
>
>
|
|
|
Re: Has anyone gotten Ant to work under Eclipse? [message #76458 is a reply to message #76445] |
Tue, 15 July 2003 19:27  |
Eclipse User |
|
|
|
Don't sound sooo surprised :-)
I logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=40165 so we can get
away from this problem.
Glad it worked out,
Darins
"Roger Wilco" <wilco909@hotmail.com> wrote in message
news:bf2191$q74$1@eclipse.org...
> Wow, that actually works!!!
>
> I swear I checked all the FAQs and did all the searches.
>
> Thank you very much for your help!
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:bf19m5$203$1@eclipse.org...
> > The other most frequently asked Ant questions :-)
> >
> > The JAVA_HOME error message is from Apache Ant which does not "know"
that
> it
> > has been integrated within Eclipse.
> >
> > You need to have a jdk tools.jar on the Ant runtime classpath using the
> > Ant preference pages.
> >
> > This is done for you automatically if you start Eclipse using a JVM from
a
> > JDK install (as opposed to a JRE install). This is accomplished using
> > the -vm arg.
> >
> > Alternately, you can set the build.compiler property to
> > "org.eclipse.jdt.core.JDTCompilerAdapter" if you wish to use Eclipse's
> > internal compiler for your build
> >
> > HTH
> > Darins
> >
> > "Roger Wilco" <wilco909@hotmail.com> wrote in message
> > news:bf19ga$1pn$1@eclipse.org...
> > > I didn't move any JARs from their physical locations.
> > >
> > > I did I Restore Defaults and I get:
> > >
> > > compile:
> > > [javac] Compiling 7 source files to C:\Program
> > > Files\eclipse\workspace\DNS Simulator\build
> > > [javac] BUILD FAILED: file:C:/Program
Files/eclipse/workspace/DNS
> > > Simulator/build.xml:18: 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
> > > Total time: 578 milliseconds
> > >
> > > Manually setting JAVA_HOME from the command prompt before running
> Eclipse
> > > doesn't change anything.
> > >
> > > Thanks for your help!
> > >
> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > > news:beq3fb$ks5$1@eclipse.org...
> > > > Did you move the Xerces JARs from the physical location?
> > > >
> > > > What other error did you get with the default configuration?
> > > >
> > > > To restore the default settings, hit restore defaults on the
relevant
> > > > preferences pages.
> > > >
> > > > HTH
> > > > Darins
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04576 seconds