“sdk command is not found ” is coming the terminal

社会主义新天地 提交于 2020-06-24 13:59:06

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/45392965/sdk-command-is-not-found-is-coming-the-terminal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!