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
解决的方法是:
我的是进入我的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