首页 > 技术文章 > eclipse启动报错A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.

dandandeyoushangnan 2015-08-13 19:08 原文

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:…

此问题起于我在Ubuntu1004上装了两个版本的eclipse:Galieo+helios;卸载前者后出现启动不了eclipse的问题;在网上找了下,可以按如下过程进行解决:

Eclipse 3.6 在 Ubuntu 10.04 下会出现一个很奇怪的现象,我没有经过测试,无法确定是Ubuntu 10.04 还是 JDK 还是 Eclipse本身造成的。 这个现象是:
可以在终端顺利启动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:…
解决办法是在终端进入你的eclipse目录,然后输入:
mkdir jre cd jre ln -s 你的JDK目录/bin bin

问题解决!

推荐阅读