Hint that there is no Java Runtime environment
Workaround
//查找你Java的安装目录//我的在如下/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home//使用文本编辑器打开bash或者zsh的配置文件//我使用的是bash vi .bash_profile//添加export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"PATH="{JAVA_HOME}:$PATH"//Java运行环境配置好了
Configuration failure causes terminal error and cannot enter profile editing processing again:
1. Enter in the command line: Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin This guarantees that command-line commands can be used temporarily. Do not close the terminal until after the command has been executed.
2. Enter vi/etc/profile on the command line to see if you have set the Path property in addition.
In the VI editor, enter
Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin
Java configuration pits under Mac