当我打开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:
/home/swz/java/eclipse/jre/bin/java
was found after searching the following locations:
/home/swz/java/eclipse/jre/bin/java
java in your current PATH
后来在网上找到了一种方法:
进入你的eclipse目录,用终端打开,切换到root下,然后输入:
mkdir jre
cd jre
ln -s 你的JDK目录/bin/ 此时在回车。再次打开eclipse就可以了。