FitNesse 试图 运行 Java 的错误版本

FitNesse Trying to Run the Wrong Version of Java

我刚刚下载了 FitNesse,我正在尝试 运行 在 Windows 8.1 上安装 Java 1.8.0_101。 wiki 运行 已启动,但当我单击“测试”按钮时,我收到一条错误消息:

Could not complete testing: java.io.IOException: Cannot run program ""C:\Program Files (x86)\Java\jre1.8.0_71\bin\java"": CreateProcess error=2, The system cannot find the file specified

C:\Program Files (x86)\Java下没有jre1.8.0_71文件夹,只有一个jre1.8.0_101文件夹。如何配置 FitNesse 以指向正确的位置?

我查看了 C:\ProgramData\Oracle\Java\javapath\java.exe 的快捷方式(java.exe 文件实际上是快捷方式),它指向正确的 jre1.8.0_101 文件夹。我发现一个博客 post 建议将 C:\Program Files (x86)\Java\jre1.8.0_71\bin\ 添加到 PATH 环境变量。那没有用。 FitNesse 文档下的Configuration File 部分似乎可以配置测试等等,似乎没有包括如何配置Java 的版本来使用。我被难住了。

编辑: 这是我从命令行 运行 启动 FitNesse 时得到的结果:

C:\ManuallyInstalledApplications\Fitnesse>java.exe
-version:"1.8.0_101" -jar fitnesse-standalone.jar -p 8090
Aug 18, 2016 11:22:23 PM fitnesse.ConfigurationParameter loadProperties INFO:
No configuration file found (C:\ManuallyInstalledApplications\Fitnesse\plugins.properties)
Bootstrapping FitNesse, the fully integrated standalone wiki and
acceptance testing framework.
root page: fitnesse.wiki.fs.FileSystemPage at .\FitNesseRoot#latest
logger: none
authenticator: fitnesse.authentication.PromiscuousAuthenticator page
factory: fitnesse.html.template.PageFactory page theme: bootstrap
Starting FitNesse on port: 8090

看看你的 'JAVA_HOME' 环境变量,它可能指向旧版本