Skip to main content



      Home
Home » Newcomers » Newcomers » How do I update ANT in eclipse?
How do I update ANT in eclipse? [message #59907] Fri, 29 April 2005 17:07 Go to next message
Eclipse UserFriend
Originally posted by: nobody.tellus.orb

Hi,

I read this on internet
"Previous versions of ant had a problem with the javah target under
JDK 1.4, so you must use 1.6.1 or later."
( http://www.mozilla.org/projects/blackwood/webclient/release- notes/
2_0_alpha_2-detail.html)

And since I have a problem using these lines in eclipse's ANT

</javac>
<javah destdir = "." force = "yes" verbose = "true"
classpath = ".">
<class name = "mypackage.MyClass"/>
</javah>

With the following error

BUILD FAILED: ...\build.xml:98: Error starting javah:
java.lang.ClassNotFoundException: com.sun.tools.javah.Main

I thouhgt I might need to update my version of ANT, but I don't know
how.

Is there anyone that knows what's wrong?
Thanks

~ Daniel
Re: How do I update ANT in eclipse? [message #59975 is a reply to message #59907] Fri, 29 April 2005 19:13 Go to previous message
Eclipse UserFriend
Always start by telling us which version of Eclipse you are using so I can
give you the specific instruction set

For the 3.1 stream:
Window>preferences>Ant>Runtime>Ant Home

Set it to the install of Ant you wish to use.

For an FYI:
Eclipse 3.0 ships with Ant 1.6.1
Eclipse 3.0.1 ships with Ant 1.6.2
Eclipse 3.0.2 ships with Ant 1.6.2
Eclipse 3.1 is in the process of being moved to Ant 1.6.3

HTH
Darins

"DeMarcus" <nobody@tellus.orb> wrote in message
news:d4u7u9$d67$1@news.eclipse.org...
>
> Hi,
>
> I read this on internet
> "Previous versions of ant had a problem with the javah target under
> JDK 1.4, so you must use 1.6.1 or later."
> ( http://www.mozilla.org/projects/blackwood/webclient/release- notes/
> 2_0_alpha_2-detail.html)
>
> And since I have a problem using these lines in eclipse's ANT
>
> </javac>
> <javah destdir = "." force = "yes" verbose = "true"
> classpath = ".">
> <class name = "mypackage.MyClass"/>
> </javah>
>
> With the following error
>
> BUILD FAILED: ...\build.xml:98: Error starting javah:
> java.lang.ClassNotFoundException: com.sun.tools.javah.Main
>
> I thouhgt I might need to update my version of ANT, but I don't know
> how.
>
> Is there anyone that knows what's wrong?
> Thanks
>
> ~ Daniel
>
Previous Topic:Why can't eclipse create a regular project
Next Topic:Searching, Bookmarks and External Diff
Goto Forum:
  


Current Time: Fri Jun 06 21:40:07 EDT 2025

Powered by FUDForum. Page generated in 0.06901 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top