I\'ve setup a build.gradle file with apply plugin: \'java\'. I tried setting up a gradle wrapper using the instructions here, but when I type sud
Ok so the solution was to run gradlew on the Linux partition itself. Somehow, when I ran it from a Windows partition mounted in Linux, the file couldn't get execute permissions even though I ran chmod 777 gradlew. When I copied the project into the Linux filesystem and ran it, it worked fine (after setting execute permission for it).