Linux 下报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must解决方案

时间:2021-01-10 17:04:50
一、报错环境: 在Linux mint下,前几天还用得很好的的eclipse,今天开机不知为什么这样。 

Linux 下报错: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