I am working on a Java project with Gradle Wrapper (gradlew
). I use Ubuntu Linux as my OS. When I run "gradle" it runs, and gives me information. But when I run "gradlew", it outputs as:
No command 'gradlew' found, did you mean:
Command 'gradle' from package 'gradle' (universe)
gradlew: command not found"
I did my research, I have the JDK, and I did sudo apt-get install gradle
. How can I fix it?
The error is:
gradlew clean jpackage
Output:
bash: gradlew: command not found...
./gradlew
. It isn't on your path but is an executable that is present in the root directory of the project you checkout. – Drawbar