执行失败:java.io.IOException:无法运行程序“ powershell”:CreateProcess错误= 2,系统找不到指定的文件

时间:2019-12-03 10:23:04

标签: java powershell antbuilder polarion

An Ant BuildException has occured: The following error occurred while executing this line: C:\Polarion\data\workspace\polarion-data\jobs\20191203-1104\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:869: Execute failed: java.io.IOException: Cannot run program "powershell": CreateProcess error=2, The system cannot find the file specified

我试图在Polarion ALM软件中运行新的版本,但是它抛出了此异常。 有人知道如何解决此异常吗?

整个日志:

2019-12-03 14:22:04,763 [Worker-0: Default build of templates.polarion:CIC | u:admin] INFO  root  - Status of job "Default build of templates.polarion:CIC" is FAILED:
BUILD ERROR

com.polarion.alm.builder.GenericBuilderException: BUILD ERROR

An Ant BuildException has occured: The following error occurred while executing this line:
C:\Polarion\data\workspace\polarion-data\jobs\20191203-1418\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:869: 
The following error occurred while executing this line:
C:\Polarion\data\workspace\polarion-data\jobs\20191203-1418\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:861: Execute failed: java.io.IOException: Cannot run program "powershell": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
The following error occurred while executing this line:
C:\Polarion\data\workspace\polarion-data\jobs\20191203-1418\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:861: Execute failed: java.io.IOException: Cannot run program "powershell": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
The following error occurred while executing this line:
C:\Polarion\data\workspace\polarion-data\jobs\20191203-1418\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:861: Execute failed: java.io.IOException: Cannot run program "powershell": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
The following error occurred while executing this line:
C:\Polarion\data\workspace\polarion-data\jobs\20191203-1418\sources\ProjektNEU\templates.polarion\CIC\null\build.xml:861: Execute failed: java.io.IOException: Cannot run program "powershell": CreateProcess error=2, Das System kann die angegebene Datei nicht finden```

0 个答案:

没有答案