Forum Discussion
hellrid1
12 years agoOccasional Contributor
I needed to add a \\ to the \'s in C:\Documents and Settings\Hellrid1\Desktop\SoapUICmd\RTR-Test-soapui-project.xml\
The modified command is :
Runtime.getRuntime().exec( "cmd.exe /C testrunner.bat -s\"RealTimeRatingServiceSoapBinding TestSuite\" -c\"RTR-Rate Revision Request TestSuite\" \"C:\\Documents and Settings\\Hellrid1\\Desktop\\SoapUICmd\\RTR-Test-soapui-project.xml\"", null, "C:\\Program Files\\SmartBear\\soapUI-Pro-4.0.1\\bin" );
After that, I am getting a compiler error message from the Eclipse IDE which says:
"The method exec(String, String[], File) in the type Runtime is not applicable for the arguments (String, null, String)"
The modified command is :
Runtime.getRuntime().exec( "cmd.exe /C testrunner.bat -s\"RealTimeRatingServiceSoapBinding TestSuite\" -c\"RTR-Rate Revision Request TestSuite\" \"C:\\Documents and Settings\\Hellrid1\\Desktop\\SoapUICmd\\RTR-Test-soapui-project.xml\"", null, "C:\\Program Files\\SmartBear\\soapUI-Pro-4.0.1\\bin" );
After that, I am getting a compiler error message from the Eclipse IDE which says:
"The method exec(String, String[], File) in the type Runtime is not applicable for the arguments (String, null, String)"
Related Content
- 9 years agoCoder7524