简体   繁体   English

无法启动测试系统'slim':java.io.IOException:无法运行程序“ java”:error = 2,没有这样的文件或目录

[英]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.

相关问题 java.io.IOException: 无法运行程序“...”: java.io.IOException: error=2, No such file or directory - java.io.IOException: Cannot run program “…”: java.io.IOException: error=2, No such file or directory JVM无法启动:java.io.IOException:无法运行程序“/ usr / libexec / StartupItemContext; error = 2,没有这样的文件或目录 - JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory java.io.IOException:无法运行程序“/usr/bin/sh”:java.io.IOException:error=2,没有那个文件或目录 - java.io.IOException: Cannot run program “/usr/bin/sh”: java.io.IOException: error=2, No such file or directory java.io.IOException:无法运行程序“ C:\\ AutoIt \\ ModenaAutoIt.exe”:java.io.IOException:error = 2,没有此类文件或目录 - java.io.IOException: Cannot run program “C:\AutoIt\ModenaAutoIt.exe”: java.io.IOException: error=2, No such file or directory java.io.IOException:Cannot run program "sh" (in directory "c:\\cygwin\\bin\\test"):CreateProcess error=2.The system cannot find file specified - java.io.IOException:Cannot run program “sh” (in directory“c:\cygwin\bin\test”):CreateProcess error=2.The system cannot find file specified java.io.IOException:无法运行程序“mysql”:CreateProcess error=2,系统找不到指定的文件 - java.io.IOException:Cannot run program “mysql”:CreateProcess error=2, The system cannot find the file specified java.io.IOException:无法运行程序“”:CreateProcess error = 2,系统找不到指定的文件 - java.io.IOException: Cannot run program “”: CreateProcess error=2, The system cannot find the file specified java.io.IOException:无法运行程序“ WMIC”:CreateProcess错误= 2,系统找不到指定的文件 - java.io.IOException: Cannot run program “WMIC”: CreateProcess error=2, The system cannot find the file specified java.io.IOException:无法运行程序“ tskill”:CreateProcess错误= 2,系统找不到指定的文件 - java.io.IOException: Cannot run program “tskill”: CreateProcess error=2, The system cannot find the file specified java.io.IOException:无法运行程序“plink”:CreateProcess error=2,系统找不到指定的文件 - java.io.IOException: Cannot run program "plink": CreateProcess error=2, The system cannot find the file specified
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM