GVM installed gradle is not recognized in Linux terminal

Karthikeyan

Recently installed gradle via gvm and $ gradle build throws the following error message.

If 'gradle' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf gradle

Obviously, class path issues, So I have tried echo $GRADLE_HOME outputs /home/karthikeyan/.gvm/gradle/current

But the actual binary is at /home/karthikeyan/.gvm/gradle/2.3/bin (exporting this to path variable,works). What if I am switching between the versions? Is there any general solution ?

Opal

You should always use $GRADLE_HOME which points to $HOME/.gvm/gradle/current/- so if not $GRADLE_HOME use the latter path.

If there's a need to switch between versions use the following command:

gvm use gradle <version>

The ../current/ path is a symlink that points the version of gradle being in use. It's done in the following way to ease the usage - just add ../current path to $PATH and it's done, instead of switching the versions manually every time new version is installed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Bower is installed and in path, but not recognized

From Dev

GVM does not install products on linux mint

From Dev

How to switch to virtual terminal when there is no GUI installed on a Linux server?

From Dev

How can I find out where the gvm installed groovy?

From Dev

How can I find out where the gvm installed groovy?

From Dev

eclipsefp and yesod :installed package was not recognized

From Dev

Silverlight 5.0 not being recognized as installed

From Dev

eclipsefp and yesod :installed package was not recognized

From Dev

Newer Java version installed but not recognized

From Dev

When I type vim in terminal my bodhi linux complains emacs is not installed (bodhi linux)

From Dev

Open installed software with terminal

From Dev

terminal says inkscape not installed but it is

From Dev

Gradle on Eclipse, diamond operator not recognized?

From Dev

Node JS NPM modules installed but command not recognized

From Dev

wget is not recognized as a command even though it is installed

From Dev

wget is not recognized as a command even though it is installed

From Dev

Size command is not recognized, thought installed correctly

From Dev

What would cause an installed application to not be recognized as such?

From Java

nodemon command is not recognized in terminal for node js server

From Dev

'Pip' recognized in Command Prompt but not in PyCharm terminal

From Dev

Terminal does not recogninze an installed program

From Dev

Terminal does not recogninze an installed program

From Dev

Partition table not recognized by Linux kernel

From Dev

Is gvm outdated?

From Java

The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin

From Dev

Linux terminal emulator with terminal autocomplete?

From Dev

Package is installed and is not detected. (gradle)

From Dev

PHP Interpreter is not Installed (Linux)

From Dev

While trying to install rvm and ruby on ubuntu, curl is not recognized but is installed

Related Related

  1. 1

    Bower is installed and in path, but not recognized

  2. 2

    GVM does not install products on linux mint

  3. 3

    How to switch to virtual terminal when there is no GUI installed on a Linux server?

  4. 4

    How can I find out where the gvm installed groovy?

  5. 5

    How can I find out where the gvm installed groovy?

  6. 6

    eclipsefp and yesod :installed package was not recognized

  7. 7

    Silverlight 5.0 not being recognized as installed

  8. 8

    eclipsefp and yesod :installed package was not recognized

  9. 9

    Newer Java version installed but not recognized

  10. 10

    When I type vim in terminal my bodhi linux complains emacs is not installed (bodhi linux)

  11. 11

    Open installed software with terminal

  12. 12

    terminal says inkscape not installed but it is

  13. 13

    Gradle on Eclipse, diamond operator not recognized?

  14. 14

    Node JS NPM modules installed but command not recognized

  15. 15

    wget is not recognized as a command even though it is installed

  16. 16

    wget is not recognized as a command even though it is installed

  17. 17

    Size command is not recognized, thought installed correctly

  18. 18

    What would cause an installed application to not be recognized as such?

  19. 19

    nodemon command is not recognized in terminal for node js server

  20. 20

    'Pip' recognized in Command Prompt but not in PyCharm terminal

  21. 21

    Terminal does not recogninze an installed program

  22. 22

    Terminal does not recogninze an installed program

  23. 23

    Partition table not recognized by Linux kernel

  24. 24

    Is gvm outdated?

  25. 25

    The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin

  26. 26

    Linux terminal emulator with terminal autocomplete?

  27. 27

    Package is installed and is not detected. (gradle)

  28. 28

    PHP Interpreter is not Installed (Linux)

  29. 29

    While trying to install rvm and ruby on ubuntu, curl is not recognized but is installed

HotTag

Archive