dcsimg
Ant installation problem on Win2K and WinXp
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Oleg_Shnayder
Posted On:   Monday, December 13, 2004 08:57 AM

Hi there I have 2 boxes Win2K and WinXP Pro. Both have Ant 1.6.2 and XP has Java 1.4.2, Win2K has Java 1.5.0. the problem is when I try to type ant at command prompt It gives me the same output as I would type java + enter I have ANT_HOME=C:Antant-1.6.2 and JAVA_HOME=C:Java and at this point I don't know how to fix this issue H:>ant Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the "client" VM -server to sel   More>>

Hi there

I have 2 boxes Win2K and WinXP Pro. Both have Ant 1.6.2 and

XP has Java 1.4.2, Win2K has Java 1.5.0.

the problem is when I try to type ant at command prompt

It gives me the same output as I would type

java + enter

I have ANT_HOME=C:Antant-1.6.2 and JAVA_HOME=C:Java

and at this point I don't know how to fix this issue


H:>ant

Usage: java [-options] class [args...]

(to execute a class)

or java [-options] -jar jarfile [args...]

(to execute a jar file)



where options include:

-client to select the "client" VM

-server to select the "server" VM

-hotspot is a synonym for the "client" VM
[deprecated]

The default VM is client.

etc......


Could anyone please advice



Thank you,

Oleg


   <<Less

Re: Ant installation problem on Win2K and WinXp

Posted By:   Anonymous  
Posted On:   Saturday, January 22, 2005 02:14 PM

Hi,



I had the same problem and after 5 hours hard work I figured out that a backslash caused the prolem:

I used this:

ANT_HOME=c:workprogramsant and the solution:

ANT_HOME=c:workprogramsant



Miklos

Re: Ant installation problem on Win2K and WinXp

Posted By:   James_Cerra  
Posted On:   Friday, December 31, 2004 01:32 AM

I have Win XP and here's that batch file I use to set up Ant so it can be run. You should be able to modify it to run on your system. (Ant was installed into the libant directory instead of C:Antant-1.6.2 in your example. This way, I can configure it for redistributing - it only adds a meg - with my project's source as a dependency.)



rem - set environment (change for each system)
set JAVA_HOME=C:Program FilesJavajdk1.5.0

rem - Unset Classpath
set CLASSPATH=

rem - J2SE 5.0 JDK 1.5 Utilities
set PATH=%PATH%;%JAVA_HOME%in

rem - Apache Ant
set ANT_HOME=%cd%libant
set PATH=%PATH%;%ANT_HOME%in

rem - branch to a console
cmd

Hope that helps!

About | Sitemap | Contact