击:/ gradlew:没有这样的文件或目录(Windows)中

问题描述:

我试图编译在亚马逊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://*.com/questions/22301956/error-with-gradlew-usr-bin-env-bash -no-such-file-or-directory) – santafebound

./gradlew bootRepackage

+0

对不起,这是OP中的一个转录错误。我使用过''./gradlew bootRepackage'',但它不起作用。 – santafebound

+0

它仍然会给出同样的错误吗? – Pod

+0

是同样的错误。 – santafebound