当前位置:   article > 正文

mac 配置jdk 环境变量(No Java runtime present, requesting install.)_huiying@huiying ~ % java no java runtime present,

huiying@huiying ~ % java no java runtime present, requesting install.

No Java runtime present, requesting install.

安装完还提示这个错误,可以

vim .bash_profile 

添加:  

export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"

 

export PATH=${JAVA_HOME}/bin:$PATH

保存,并关闭

然后  source .bash_profile


java -version

打印:


java version "1.8.0_66"

Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/334302
推荐阅读
相关标签
  

闽ICP备14008679号