Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set gradle path after installing using sdkman

In Ubuntu 14.04 i have installed gradle using sdkman. When I execute "which gradle" in terminal from my primary account it shows path of gradle. Now I have another account hadoop having hduser, so after switching to hduser it is showing gradle is not installed. What should I do? How can I set path of gradle for hduser?

like image 919
Mahek Avatar asked Oct 23 '16 13:10

Mahek


People also ask

Where does Sdkman install Gradle?

Using SDKMAN! with an IDE Therefore, the currently selected version of Java will also be available as current in that directory. In the same vein, Gradle or any other SDK will be installed under the candidates directory.

Where is Gradle path set?

On android studio just go to File > Settings > Build Execution, Deployment > Gradle > Service directory path choose directory what you want.

How do I find my Gradle path?

The global properties file should be located in your home directory: On Windows: C:\Users\<you>\. gradle\gradle.


1 Answers

sdkman installs software only for your current user (placed under $HOME/.sdkman). When you login as another user you will not have access to them. sdkman has init scripts called from your .bashrc/.zshrc that will append to your PATH. On my account gradle is /Users/marvi/.sdkman/candidates/gradle/current/bin/gradle.

For a multi user install I would do a manual install. First option here: http://howtoprogram.xyz/2016/09/06/install-gradle-ubuntu-16-04/

like image 174
marvi Avatar answered Oct 20 '22 09:10

marvi