in reply to Re^3: running jar file with multiple arguments in perl
in thread running jar file with multiple arguments in perl

Hi Khen, Its actually running, the problem is it will only get the first value of the abc.txt. The jar file actually able to run. My problem is i don'tknow how to pass the second value.
The output of the jar file is as below :
e.g :
A. Choose value 1 :
1 Windows
2 Unix
Input : 2 <Enter>
B. Choose value 2 :
1 Oracle
2 DB2
Input : 1 <Enter>
  • Comment on Re^4: running jar file with multiple arguments in perl

Replies are listed 'Best First'.
Re^5: running jar file with multiple arguments in perl
by Corion (Patriarch) on May 29, 2010 at 14:08 UTC

    I'm not Khen1950fx, and the code you have posted is not valid Perl. If you have code that compiles and "works", post that code. If you don't have code, don't claim that you have code.

    You will likely have to use Expect or find out how to automate reading from Standard Input in Java.