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: /usr/local/eclipse/

linux系统下jdk是已经安装好的情况之下软件出现

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:
/usr/local/eclipse/jre/bin/java java in your current PATH


解决办法是在终端进入你的eclipse目录,然后输入:

mkdir jre
cd jre
ln -s 你的JDK目录/bin

原文地址:https://www.cnblogs.com/tk55/p/6536770.html