gradlew command not found?

We Are Going To Discuss About gradlew command not found?. So lets Start this Java Article.

gradlew command not found?

  1. gradlew command not found?

    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

  2. gradlew command not found?

    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

Solution 1

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

Original Author Suragch Of This Content

Solution 2

Gradle wrapper needs to be built. Try running gradle wrapper --gradle-version 2.13 Remember to change 2.13 to your gradle version number. After running this command, you should see new scripts added to your project folder. You should be able to run the wrapper with ./gradlew build to build your code. Please refer to this guid for more information https://spring.io/guides/gs/gradle/.

Original Author Alex Wilson Of This Content

Solution 3

Running this bash command works for me by running chmod 755 gradlew as sometimes file properties changed upon moving from one OS to another (Windows, Linux and Mac).

Original Author Ayman Mahgoub Of This Content

Solution 4

If you are using mac, try giving root access to gradlew by doing

chmod +x ./gradlew

Original Author Pankaj Gaikar Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment