Java – gradlew command not found

gradleinstallationjavalinux

I am working on a Java project with gradlew. I use Ubuntu Linux as my OS. When I run "gradle" it runs, and gives me info. 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 jdk, and I did sudo apt-get install gradle. I am totally clueless

Best Answer

Linux / MacOS

As noted in the comments, just running

./gradlew

worked for me. Adding the ./ tells it to look in the current directory since it isn't in the path.

Windows PowerShell

.\gradlew
Related Topic