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目录)
评论 (0)