---
title: "Eclipse启动时报错：A Java RunTime Environment (JRE) or Java Development Kit (JDK) must"
author: "tycomputer"
date: "2012-05-02T11:17:34Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-a-java-runtime-environment-jre-or-java-development-kit-jdk-must"
draft: false
lastmod: "2012-05-02T11:17:34Z"
id: 1507453
url: "https://tycomputer.iteye.com/blog/1507453"
---

在Linux mint下，前几天还用得很好的的eclipse，今天开机不知为什么这样。

![](http://dl.iteye.com/upload/attachment/0067/4367/0dae828f-21a0-3b4e-b6e8-07cdba5278ed.png)

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