I'm having a problem installing gradlew... I can use the gradle command by simply typing "gradle" in the Terminal, but "gradlew" doesn't do anything. I installed gradle using
sudo apt install gradle
And it installed successfully. I have to use "sudo gradle" and not "gradle" because this shows up when I don't use sudo.
icebunny08@D3CRYPT3D:~$ gradle
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/usr/share/gradle/lib/gradle-base-services-3.4.1.jar) to method java.lang.ClassLoader.getPackages()
WARNING: Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Starting a Gradle Daemon (subsequent builds will be faster)
:help
Welcome to Gradle 3.4.1.
To run a build, run gradle <task> ...
To see a list of available tasks, run gradle tasks
To see a list of command-line options, run gradle --help
To see more detail about a task, run gradle help --task <task>
BUILD SUCCESSFUL
Total time: 5.017 secs
My problems are if I installed Gradle correctly, and why can't I use the "gradlew" command. This is the output when I use "gradlew".
icebunny08@D3CRYPT3D:~$ gradlew
Command 'gradlew' not found, did you mean:
command 'gradle' from deb gradle
Try: sudo apt install <deb name>
./gradlew
orsh gradlew
in your project – Mayra Delgado May 12 '22 at 09:53