Command 'gradle' not found. How can I run the gradle command from any directory?
By Emma Johnson •
I am trying to learn gradle build.
I followed these instructions on gradle.org.
To verify it i am issuing command.
gradle -vI get this output:
Command 'gradle' not found, but can be installed with:
sudo apt install gradleBut after issuing this command from the installation link
$ export PATH=$PATH:/opt/gradle/gradle-4.10.2/binthe above command shows gradle version in my computer.
But the problem is once I close the terminal and issue the command I get the error command not found, and once again if I issue the export PATH... command, then the gradle command starts working.
So how do I add this path permanently so I can issue the gradle command from anywhere?
1 Answer
Edit ~/.bashrc and add the export ... command there.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"