[英]Unable to start test system 'slim': java.io.IOException: Cannot run program “java”: error=2, No such file or directory
I am using FitNesse slim on a UNIX server for database testing, using this as my base project: https://github.com/markfink/dbslim 我正在UNIX服务器上使用FitNesse slim进行数据库测试,并将其用作我的基础项目: https : //github.com/markfink/dbslim
I have built the dbslim .jar using maven in eclipse locally and copied it onto a UNIX servers lib folder (at /var/tmp/fitnesse/lib) which already contains all the needed dependencies. 我已经在本地eclipse中使用maven构建了dbslim .jar,并将其复制到UNIX服务器的lib文件夹(位于/ var / tmp / fitnesse / lib)中,该文件夹已经包含了所有必需的依赖项。 I run the
#!/bin/ksh /var/java/1.7.0_51/bin/java -jar lib/fitnesse-standalone.jar &
command from /var/tmp, starting FitNesse on port 80. I navigate to MyServer:80 on my browser and try to run a test page. 我从/ var / tmp运行
#!/bin/ksh /var/java/1.7.0_51/bin/java -jar lib/fitnesse-standalone.jar &
命令,在端口80上启动FitNesse。我导航至MyServer:80在我的浏览器上,然后尝试运行测试页。 I'm greeted with 我受到了欢迎
Unable to start test system 'slim': java.io.IOException: Cannot run program "java": error=2, No such file or directory
when I have fixture code and when I have none I receive Unable to start test system 'slim': java.io.IOException: Cannot run program "java": error=2, No such file or directory
当我有治具代码,而我没有治具代码时Unable to start test system 'slim': java.io.IOException: Cannot run program "java": error=2, No such file or directory
Could not complete testing: java.io.IOException: Cannot run program "java": error=2, No such file or directory
Can someone explain how FitNesse cannot find the java version to run? 有人可以解释FitNesse如何找不到要运行的Java版本吗?
You should add /var/java/1.7.0_51/bin
to the PATH environment variable before starting FitNesse. 在启动FitNesse之前,应将
/var/java/1.7.0_51/bin
添加到PATH环境变量中。
Try starting FitNesse using PATH="$PATH:/var/java/1.7.0_51/bin" && java -jar lib/fitnesse-standalone.jar &
尝试使用
PATH="$PATH:/var/java/1.7.0_51/bin" && java -jar lib/fitnesse-standalone.jar &
启动FitNesse
Please add the JDK path as bellow to your JDK Path in Jenkins- 请将JDK路径添加到Jenkins-中的JDK路径中
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.