macbook安装java终端输入java -version显示No Java runtime present, requesting install.
去oracle官网下载了JDK安装好以后。终端输入java-version一直显示NoJavaruntimepresent,requestinginstall.解决办法为:在终端中输入vim.bash_profile添加:exportJAVA_HOME="/Library/InternetPlug-Ins/JavaAppletPlugin.plugin/Contents/Home"exportPA