做下笔记:linux eclipse安装时出错(A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be ...)

时间:2023-01-21 23:34:07

 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:…

解决办法是在终端进入你的eclipse目录,然后输入:

mkdir jre
cd jre

ln -s 你的jdk目录/bin bin(格式:ln -s 源文件 目标文件)