Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must

在Linux mint下,前几天还用得很好的的eclipse,今天开机不知为什么这样。

Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must

Eclipse 3.6 在 linux mint 12 可以在终端顺利启动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/zhangliuhua/developer/eclipse/jre/bin/java java in your current PATH

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

mkdir jre
cd jre
ln -s /usr/lib/jvm/java-6-sun-1.6.0.26/bin bin

你可能感兴趣的:(java,eclipse,linux,mint)