From: markspace on
Bill Cunningham wrote:
> Arne Vajh�j wrote:
>
>> 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.


Just curious: which tutorial do you mean? Do you have a link?

From: Bill Cunningham on

"markspace" <nospam(a)nowhere.com> wrote in message
news:hqdapa$pc4$1(a)news.eternal-september.org...

> Just curious: which tutorial do you mean? Do you have a link?
>

http://ant.apache.org/manual/index.html

For ant . I also tried old dos paths by writing my own batch file that says
this.

@echo off
set path=c:\progra~1\java\jdk1.6.0_u20\bin;%path%

;That works with java. But not javac or jar.

set classpath=c:\progra~1\java\jdk1.6.0_u20\lib\tols.jar;%classpath%

I don't know if the above set works or not. As far as these ANT_HOME and
JAVA_HOME I have no idea what to do with them.

Bill


From: Peter Duniho on
Arne Vajh�j wrote:
> On 17-04-2010 16:32, Bill Cunningham wrote:
>> Arne Vajh�j wrote:
>>> 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.
>
> On Windows you set them in:
> control panel
> system
> advanced
> environment
>
> Be very carefully not to delete anything existing! [...]

Note: in Windows 7 (and if I recall correctly, Vista�but I'm not 100%
sure about that), user-specific environment variables are set in the
User Accounts control panel.

The "Advanced�/Environment" dialog has a "User variables�" section, but
it's unreliable for non-admin accounts, because you can only even get to
the dialog using admin credentials (and so it always is setting
environment variables for some admin account).

Of course, if one is setting system-wide environment variables, this is
not a concern. For my own Java use, I set the variables only for the
user account I am using for the dev work (which is never an admin
account), but I suppose in other situations system-wide settings are
called for.

Pete
From: Arne Vajhøj on
On 17-04-2010 18:27, Bill Cunningham wrote:
> For ant . I also tried old dos paths by writing my own batch file that says
> this.
>
> @echo off
> set path=c:\progra~1\java\jdk1.6.0_u20\bin;%path%
>
> ;That works with java. But not javac or jar.

It should work with javac and jar.

Does that directory contain the two exe's?

> set classpath=c:\progra~1\java\jdk1.6.0_u20\lib\tols.jar;%classpath%

You should not set CLASSPATH.

> I don't know if the above set works or not. As far as these ANT_HOME and
> JAVA_HOME I have no idea what to do with them.

JAVA_HOME should point to the root of Java (not the bin dir).

It is used by many tools to locate Java.

Similar for ANT_HOME and ant.

Arne

From: Bill Cunningham on
Arne Vajh�j wrote:

> Does that directory contain the two exe's?

Yes. So classpath isn't set anymore to the tools.jar?

Bill