10

I installed sdkman in my mac machine and after completion of installation steps and when I tried for sdk to install lazybones in my computer, I am getting error as "sdk command is not found". If anybody have any solution, please let me know.

sai krishna kota
  • 111
  • 1
  • 1
  • 3
  • 1
    Reading https://stackoverflow.com/questions/44988259/where-is-the-sdk-command-installed-for-sdkman?rq=1 I would say restart your terminal (or your mac) –  Jul 29 '17 at 19:18

4 Answers4

25

you should append those two lines inside your .bash_profile file.

Usually located in your $HOME Tap nano $HOME/.bash_profile and then append those two lines at the end the file using your prefered editor (nano,vim..):

# SDK Man replaced GVM. Using for Groovy, Gradle, and Maven Version Management
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"

you can refer to this link: https://www.bonusbits.com/wiki/HowTo:Install_SDKMan_on_MacOS_or_Linux

  • I had sdkman installed and working for quite a while. Today it ran into error "-bash: sdk: command not found". Running the command above in terminal fixed it. Thanks. – Lal Apr 15 '18 at 15:01
3

Very simple in case you use MAC & OH MY ZSH

step 1:

vim ~/.zshrc

step 2:(Add at the end of the file)

source ~/.bash_profile;

step 3:(Execution shell)

> source ~/.bash_profile

You can use sdkman : ➜ sdk

We periodically need to update the local cache. Please run:

$ sdk update

...

BINGO!!!

1

If you already installed SDK please close the terminal and open again.

if you haven't installed it open your terminal & write

curl -s https://get.sdkman.io | bash
Abhishek
  • 11
  • 1
0

On windows mostly the find-command isn't found. Add in .bashrc the following export PATH=/usr/bin:$PATH

this ensures that the linux find is used instead of the windows one.

niels
  • 7,144
  • 2
  • 33
  • 56