For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2007 > ANT build tool set up question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ANT build tool set up question
kbd0718

2007-01-25, 7:09 pm

Hello:

I am trying to get ANT running on a Win2000 machine.

The Ant files were unpacked in: C:\apache-ant-1.6.5
ANT_HOME is set to ANT_HOME=c:\apache~1.5\

Java JDK is in C:\Program Files\Java\jdk1.5.0_10
JAVA_HOME is set to JAVA_HOME=c:\progra~1\java\jdk1.5.0_10

Path includes C:\apache-ant-1.6.5\bin

when I run java -version I get a correct result.

C:\Documents and Settings\kduffy>java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)


when I run ant - version at the command prompt i get the results below.
I do believe I have simple path or classpath error.

your feed back is appreciated.

thanks

kd


C:\Documents and Settings\kduffy>ant -version
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.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version
search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g.
-agentlib:hprof
see also, -agentlib:jdwp=help and
-agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see
java.lang.instrument
C:\Documents and Settings\kduffy>set ant_home
ANT_HOME=c:\apache~1.5\

C:\Documents and Settings\kduffy>set JAVA_HOME
JAVA_HOME=c:\progra~1\java\jdk1.5.0_10

C:\Documents and Settings\kduffy>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com