From: Arne Vajhøj on
On 18-04-2010 20:08, Bill Cunningham wrote:
> Arne Vajh�j wrote:
>> Yes.
>
> OK ant says it can't find tools.jar.

If you get JAVA_HOME correct, then it may find it.

Arne
From: Bill Cunningham on
Arne Vajh�j wrote:

> If you get JAVA_HOME correct, then it may find it.

According to the docs JAVA_HOME isn't even needed. But I'm putting it
there anyway. It can't hurt.


From: Bill Cunningham on

"Arne Vajh�j" <arne(a)vajhoej.dk> wrote in message
news:4bcba052$0$273$14726298(a)news.sunsite.dk...

> If you get JAVA_HOME correct, then it may find it.

Well here's what I did. I noticed that ant was searching for tools.jar
in the jre. There wasn't any tools.jar in the jre folder anywhere. So I
copied the jdk's tools.jar to the jre's lib. Ant seems to be satisfied now
that there's a copy in the jre. Why it would look there when the jre doesn't
come with it I don't know.

Bill


From: Arne Vajhøj on
On 18-04-2010 20:43, Bill Cunningham wrote:
> "Arne Vajh�j"<arne(a)vajhoej.dk> wrote in message
> news:4bcba052$0$273$14726298(a)news.sunsite.dk...
>> If you get JAVA_HOME correct, then it may find it.
>
> Well here's what I did. I noticed that ant was searching for tools.jar
> in the jre. There wasn't any tools.jar in the jre folder anywhere. So I
> copied the jdk's tools.jar to the jre's lib. Ant seems to be satisfied now
> that there's a copy in the jre. Why it would look there when the jre doesn't
> come with it I don't know.

Did you try having JAVA_HOME point to the root of the JDK ?

Arne
From: Roedy Green on
On Sat, 17 Apr 2010 16:32:09 -0400, "Bill Cunningham"
<nospam(a)nspam.invalid> wrote, quoted or indirectly quoted someone who
said :

>> You should set JAVA_HOME and ANT_HOME env vars and have JDK bin
>> dir in PATH.
>
> I can't by reading the tutorial see how to do that.

see http://mindprod.com/jgloss/environment.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

It�s amazing how much structure natural languages have when you consider who speaks them and how they evolved.