Eclipse打不开(错误内容:Eclipse A Java Runtime Environment(JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /opt/jdk1.8.0_121/jre/bin),真是太尴尬了。症状如下:
提示我说没有环境变量,但是明明是有的。
忽然想到Eclipse有个启动配置文件,然后就去看了看:
还真是有一行不对,赶紧改回来,OK了。
把图示的:
-vm
/opt/jdk1.8.0_121/jre/bin
改成:
-vm
/usr/local/jdk1.8.0_121/jre/bin