1

I have java class that contains the following code:

Runtime.getRuntime().exec("cmd /c start utils\"+scriptNameWithoutSpace+"\runScript.bat");

and it is working smoothly if I run it from eclipse, or from ANT or from Hudson, but if I try to run the class from Jenkins ,the above given line of code is not working at all, and there is no error also.I'm using JDK 1.7, Jenkins 2.19.1 and ANT 1.7. Please let me know about any solution for this.

Thanks -Pritam

Pritam Sharma
  • 31
  • 1
  • 6
  • I think you may find an answer [here](https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins), most likely in "Desktop access (Windows)" section – siarheib Oct 06 '16 at 11:18
  • I stopped the jenkins slave service and ran it from cmd prompt, now it is working as expected. – Pritam Sharma Oct 24 '16 at 05:25

0 Answers0