2017-02-23 57 views
1

我試圖編譯在亞馬遜AWS一個Springboot應用:擊:/ gradlew:沒有這樣的文件或目錄(Windows)中

https://aws.amazon.com/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/

當我嘗試打包在GitBash我有搖籃的應用得到以下錯誤信息:

$ ./gradlew bootRepackage 
bash: /gradlew: No such file or directory 

我正在使用Windows。我嘗試git config core.autocrlf false這裏建議:Error with gradlew: /usr/bin/env: bash: No such file or directory。我仍然有同樣的問題。我錯過了什麼? `git的克隆https://github.com/spring-guides/gs-accessing-data-rest.git CD GS-訪問數據:

+0

是否遵循事先說明試用-rest/complete'?即,如果現在執行'ls',它會打印出gradlew是當前目錄中的文件? – Pod

+0

是的,我跟着那一步。抱歉。該命令在訪問Gradle所在的文件夾時起作用:''\ gs-accessible-data-rest \ complete \ gradlew.bat''。 – santafebound

+0

[Gradlew出錯:/ usr/bin/env:bash:沒有這樣的文件或目錄]可能的重複(http://stackoverflow.com/questions/22301956/error-with-gradlew-usr-bin-env-bash -no-such-file-or-directory) – santafebound

回答

2

./gradlew bootRepackage

+0

對不起,這是OP中的一個轉錄錯誤。我使用過''./gradlew bootRepackage'',但它不起作用。 – santafebound

+0

它仍然會給出同樣的錯誤嗎? – Pod

+0

是同樣的錯誤。 – santafebound

相關問題