run

hiIs there anyway to give input to a program through another program....?(using Runtime)...Except command line arguments....
[145 byte] By [vin1s4ua] at [2007-10-2 10:55:17]
# 1

The way can be according to my knowledge(without command line arguments)

Though I Don't understand the reason of not to use Command line arguments

1)Develop a File which the other process will read

2)Pass the arguments through Sockets

3)Using Clipboard for Transfer

Bye for now

CSJakharia

CSJakhariaa at 2007-7-13 3:19:28 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 2

hi

Thanks for ur information...... actually thats not wat iam expecting...

i will tel u a little bit clearly... let us consider two java prgms A.java and B.java

In A.java we receive an input from the keyboard(assume a string using readLine()).

In B.java we are using Runtime and Process.. so that we can run A.java from

B.java........upto this there is no problem. Once the control goes to the program A.java,it executes everything before the line readLine()....i.e it didn't work there after.....now , I want to know whether there is any way to solve this problem....

i.e Starting from B.java,once the Process created using Runtime A.java starts its execution(it must read something from console and continues its execution) and once execution of A.java is over control returns to B.java and continiues B.java's execution.....

regards

vin

vin1s4ua at 2007-7-13 3:19:28 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...