ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: java command options instead of ant ... : Green back
Date Thu, 26 Apr 2001 08:58:50 GMT

Hi,

It's a long shot, but I have a number of JDKs on my (NT) laptop and the
biggest problem I've found wrt commandline stuff is the 'secret' java.exe
that each installer dumps in winnt/system32

Do a find files and make sure you haven't got an older java.exe somewhere
where it shouldn't be.

Bye,

Les


> -----Original Message-----
> From: Diane Holt [mailto:holtdl@yahoo.com]
> Sent: 26 April 2001 00:12
> To: ant-user@jakarta.apache.org
> Subject: Re: java command options instead of ant ... : Green back 
> 
> 
> Try changing the line at the top of the ant.bat file to @echo 
> on and see
> how things look, especially the java command-line that runs Ant.
> 
> P.S. I've never run 'ant' from a DOS window before, but I 
> just tried it on
> my NT (all I set was ANT_HOME, no classpath) and it ran fine. 
> 
> Diane
> 
> --- Viraj Purang <viraj_purang@spincircuit.com> wrote:
> > Hi,
> >     I keep getting this text when I run ant from the command prompt
> > after
> > setting the classpath and installing ANT on my PC.
> > The text resembles the output when you run just java at the command
> > prompt
> > which leads me to believe that the .bat file for ant contains java
> > statements, which are not complete.
> >     The ant however comes up fine when I run it from inside the perl
> > file
> > which is attached in the ant ditribution.
> > 	Can someone help me out on this ?
> > Regards,
> > Viraj Purang
> > 
> > 
> > 
> > 
> > C:\>ant
> > Usage: java [-options] class [args...]
> >            (to execute a class)
> >    or  java -jar [-options] jarfile [args...]
> >            (to execute a jar file)
> > 
> > where options include:
> >     -cp -classpath <directories and zip/jar files separated by ;>
> >               set search path for application classes and resources
> >     -D<name>=<value>
> >               set a system property
> >     -verbose[:class|gc|jni]
> >               enable verbose output
> >     -version  print product version
> >     -? -help  print this help message
> >     -X        print help on non-standard options
> 
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 

Mime
View raw message