ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RĂ©mon van Gijn <r.van.g...@portinfolink.com>
Subject RE: Ant won't run, help interpreting output needed
Date Mon, 01 May 2006 14:54:14 GMT

Seems your java environment is not correct.
Try running "java -version" is that working ok.
Check your environment with "set" is JAVA_HOME set, and ANT_HOME ? 

Remember to put %JAVA_HOME%/bin on the environment PATH setting.
That should be it. 

Rgds,
Remon van Gijn


-----Original Message-----
From: cknell@onebox.com [mailto:cknell@onebox.com] 
Sent: maandag 1 mei 2006 16:50
To: user@ant.apache.org
Subject: Ant won't run, help interpreting output needed

I have used ant on several occasions in the past, installing in on three or four computers.
I just installed it on my workstation at a new job this morning. I have a build.xml file in
the directory from which I call ant, but with or without the build file, I get the following.
Can someone tell me where I've gone wrong? Thanks.

=================================================
H:\dev\java\XMLfromSPOOL>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.

    -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
-- 
Charles Knell
cknell@onebox.com - email

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message