在Windows中运行ant.command的问题,“/ *?无法识别

时间:2013-07-16 13:58:47

标签: java ant

第一次面对这个问题,现在已经有一段时间了。

运行ant.cmd的Wile出现以下错误

C:\>ant.cmd

C:\>/*
'/*' is not recognized as an internal or external command,
operable program or batch file.

C:\>Licensed to the Apache Software Foundation (ASF) under one or more
'Licensed' is not recognized as an internal or external command,
operable program or batch file.

C:\>contributor license agreements.  See the NOTICE file distributed with
'contributor' is not recognized as an internal or external command,
operable program or batch file.

C:\>this work for additional information regarding copyright ownership.
'this' is not recognized as an internal or external command,
operable program or batch file.

C:\>The ASF licenses this file to You under the Apache License, Version 2.0
'The' is not recognized as an internal or external command,
operable program or batch file.
you was unexpected at this time.       

C:\>   (the "License"); you may not use this file except in compliance with

C:\>
  1. 尝试将文件作为ANSI编码仍为同一错误
  2. 环境变量的所有设置都是正确的。
  3. 用户ant1.7,ant1.8.2和现在的ant1.9.2,所有版本
  4. 中的问题相同

    有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您不应该运行ant.cmd,该脚本适用于OS / 2,而非Windows。

您应该运行ant.bat。或者只是ant,如果ant的bin \目录在你的PATH中你可能会找到更多信息here