2013-07-16 66 views
0

面對這一問題的第一次,現在圍繞它已經運行了一段時間。問題,「/ *?無法識別

威樂運行ant.cmd正在以下錯誤

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,同樣我在所有版本

有什麼想法?

+0

什麼是您設置的路徑變量的值? çan你在命令提示符下運行Ant目錄的bin目錄並運行ant – zerocool

+0

hm ...看起來像一個java註釋塊,我懷疑該批處理可以處理該目錄。你能告訴我們ant.cmd文件的內容和它的作用嗎? – WarrenFaith

回答

0

您不應該運行ant.cmd,該腳本適用於OS/2,不適用於Windows。您可以運行ant.bat。或者只是ant,如果ant的bin \目錄位於PATH中,您可能會發現更多信息here