A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS

在fedora中,已经安装了jdk,但打开sts的时候,仍然出现了这个警告,如下:


A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run STS. No Java virtual machine
was found after searching the following locations:
/home/carlos/Documents/soft/sts-bundle/sts-3.7.0.RELEASE/jre/bin/java
java in your current PATH


A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS_第1张图片


解决办法是:

我的是进入我的sts的安装目录,就是/home/carlos/Documents/soft/sts-bundle/sts-3.7.0.RELEASE,然后,执行下面命令:


/home/carlos/Documents/soft/sts-bundle/sts-3.7.0.RELEASE


mkdir jre
cd jre
ln -s 你的JDK目录/bin bin


你可能感兴趣的:(碎知识)