check for tools.jar in your %jdk_home%/lib... i had the same problem too...
On 5/7/06, aaron smith <[EMAIL PROTECTED]> wrote:
I just installed the latest ant build with the latest Java jdk/jre. when
I try and run ant it says this:
"Unable to locate tools.jar. Expected to find it in C:\Program
I just installed the latest ant build with the latest Java jdk/jre. when
I try and run ant it says this:
"Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.5.0_06\lib\tools.jar"
In that directory sits a bunch of Java stuff but the tools.jar is not
there.
not sur
You installed the JRE, not the JDK. Ant needs the JDK.
On 5/6/06, aaron smith <[EMAIL PROTECTED]> wrote:
I just installed the latest ant build with the latest Java jdk/jre. when
I try and run ant it says this:
"Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.5.0_0
Oops. Mr. Stephen you are correct.
Let me re write how the MANIFEST.MF inside the jar file looks like.
Class-Path: commonscollections3.1.jar commons-lang.jar axis.jar anothe
rverylong.jar reallycoolfile.jar
Thanks for correcting me.
-N
On 5/6/06, Stephen McConnell <[EMAIL PROTECTED]> wrote:
I just installed the latest ant build with the latest Java jdk/jre. when
I try and run ant it says this:
"Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.5.0_06\lib\tools.jar"
In that directory sits a bunch of Java stuff but the tools.jar is not
there.
not sur
> -Original Message-
> From: Narahari 'n' Savitha [mailto:[EMAIL PROTECTED]
> Sent: Sunday, 7 May 2006 3:37 AM
> To: user@ant.apache.org
> Subject: manifest file wrapping with ant jar or manifest task
>
> Friends my MANIFEST.MF file created by hand is
> .
> .
> ..
> Class-P
I am not sure if this reached anyone. Sorry inent is not to repost. Please
excuse.
On 5/6/06, Narahari 'n' Savitha <[EMAIL PROTECTED]> wrote:
Friends my MANIFEST.MF file created by hand is
.
.
..
Class-Path: commonscollections3.1.jar
commons-lang.jar
axis.jar
anotherverylong.ja
Friends my MANIFEST.MF file created by hand is
.
.
..
Class-Path: commonscollections3.1.jar
commons-lang.jar
axis.jar
anotherverylong.jar
reallycoolfile.jar
But when I use either the task or the task with manifest
file created, the jar always creates the
MANIFEST.MF like this
Class
Have you considered ant-contrib?
http://ant-contrib.sourceforge.net/ant-contrib/manual/tasks/antfetch_task.html
AntFetch
AntFetch is identical to the standard 'Ant' task, except that it
allows properties from the new project to be set in the original
project.
...
--glenn
-