ubuntu linux下解决“no java virtual machine was found after searching the following locations:” 方法

前端之家收集整理的这篇文章主要介绍了ubuntu linux下解决“no java virtual machine was found after searching the following locations:” 方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

现象:安装好jdk和环境配置后,打开eclipse后,提示no java virtual machine was found after searching the following locations

原因:jdk安装在/usr/java目录下,eclipse在/gengyiping/download/eclipse下

解决办法:在eclipse目录下,打开终端,输入“ln -s /usr/java/jdk1.8.0_141/jre jre”

猜你在找的Ubuntu相关文章