Participating Frequently
September 5, 2023
Question
Getting java.io.IOException: Cannot run program error=2, No such file or directory.
- September 5, 2023
- 0 replies
- 409 views
Hi All,
I am trying to run a ksh file with cfexecute tag. I am getting an error for no such file or directory:
An exception occurred when invoking an external process. The cause of this exception was that: java.io.IOException: Cannot run program "/opt/web/apache2/htdocs/esdConfigTool/artifactorySoftware/REST/runJFrog.ksh": error=2, No such file or directory.
This is the path for ksh file that i need to run:/opt/web/apache2/htdocs/esdConfigTool/artifactorySoftware/REST/runJFrog.ksh
The code for cfexecute is this:
<cfexecute
name="#VARIABLES.jFrogLocation#/runJFrog.ksh"
arguments='"#application.toolartifactorySoftTempabspath#" "#VARIABLES.jFrogLocation#/jfrogEsd" "#fileLocation#" "#VARIABLES.fileFolderLocation#/#arguments.file_name#"'
timeout="3000"
variable="downloadResult"
errorVariable="downloadErrorResult" />
this is the stack trace of error:
java.io.IOException: Cannot run program "/opt/web/apache2/htdocs/esdConfigTool/artifactorySoftware/REST/runJFrog.ksh": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:620) at java.lang.Runtime.exec(Runtime.java:485) at coldfusion.tagext.lang.ProcessExecutor.execute(ProcessExecutor.java:101) at coldfusion.tagext.lang.ExecuteTag.doStartTag(ExecuteTag.java:177)
Please help me resolve the issue.
