ubuntu打开eclipse提示jdk环境变量缺失报错的解决

dhso
2016/12/04 14:38
统计中

Ubuntu在安装完eclipse后打开有时会遇到找不到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

解决方案如下:

1. 进入eclipse,打开终端
2. mkdir jre
3. cd jre
4. ln -s /usr/lib/jvm/jdk1.7/bin bin   --(你的JDK目录)

本文为 dhso 原创

发布在 http://blog.minws.com/ubuntuda-kai-eclipseti-shi-jdkhuan-jing-bian-liang-que-shi-bao-cuo-de-jie-jue/

如有转载,请标明来源!

作者信息
姓名:dhso
热评文章
最新评论
文章概览