I have a jar
file which when run from command prompt works well, I mean it asks for user input,but when the same is run from psexec
or powershell
or jenkins
doesn't accept values and starts processing further commands.
In short: When jar is executed, there is a menu to make choices. If choice is within specific range, it works well else gives message entered value is not valid
. Here I am getting the message in a loop. Can anyone suggest where I am going wrong or need to make any change in the settings.
P.S.~ I am trying to execute commands on remote machine and I am calling the jar using java -jar myFile.jar