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

上一篇:Windows Vista中10条常用的运行命令


下一篇:用阿里云对象存储OSS搭建个人网盘或企业网盘的方法