Linux 中eclipse 遇到A java Runtime environment(jre) or java Development Kit(JDK) must be ...........问题

Linux下启动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:……

Linux 中eclipse 遇到A java Runtime environment(jre) or java Development Kit(JDK) must be ...........问题_第1张图片

1、更改eclipse.ini配置信息

Linux 中eclipse 遇到A java Runtime environment(jre) or java Development Kit(JDK) must be ...........问题_第2张图片
在eclipse.ini文件中添加

-vm
/usr/bin/java/jre/bin     !!!这个目录是你java的安装目录,切记!而且是**jre**的bin目录!!!!!

Linux 中eclipse 遇到A java Runtime environment(jre) or java Development Kit(JDK) must be ...........问题_第3张图片

注意:-vm里面的内容一定要卸载-vmargs之上 openFile之下!!!

你可能感兴趣的:(linux)