JimmyVerner
JimmyVerner

Reputation: 9

How to tell whether ant installed/what is $ command?

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

Answers (5)

Abhi
Abhi

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

Chris Moos
Chris Moos

Reputation: 691

`$' just indicates that you should type what it says into a shell.

Just type:

ant -v

Omit the dollar sign.

Upvotes: 11

Khaja moin
Khaja moin

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

$ is linux command prompt sign. For windows you can just ignore it

Upvotes: 0

Theo Belaire
Theo Belaire

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

Related Questions