Reputation: 9
I'm trying to install ant on my computer per this.
The instructions say to check whether ant is installed, type $ ant -v in a command window.
When I type that, I get this message: "$ is not recognized as an internal or external command, operable program or batch file."
Does this mean that ant is not installed? Is $ a command that would work if ant were installed?
I can't find a computer command beginning with $ on the web.
Upvotes: 0
Views: 37220
Reputation: 21
The Unix command is ant -version
If Apache Ant is installed it will return:
Apache Ant(TM) version {version-number} compiled on {date}
Upvotes: 2
Reputation: 691
`$' just indicates that you should type what it says into a shell.
Just type:
ant -v
Omit the dollar sign.
Upvotes: 11
Reputation: 21
ya $ is not recognized in win xp,
Is their any other method to know whether Ant is installed or not... Like for Java if you type java in cmd U will get few options....which tells that java is installed.
Upvotes: 0
Reputation: 9102
$ is linux command prompt sign. For windows you can just ignore it
Upvotes: 0
Reputation: 3020
$ is part of the shell prompt. It is there to show you which lines are input and which are output. Leave it out when entering the commands.
In the windows part, the prompt is "C:\path\to\working\dir>"
Upvotes: 0