F
frank
I am trying to run the process in the seperate environonment using the
runtime class as follows
Runtime rt;
Process p,p1;
rt=Runtime.getRuntime();
p=rt.exec("javac samp.java");
p1=rt.exec("java
samp);
the samp program is to get two arguments using the InputStreamReader
and add it.
I need to pass the two arguments from current program to
sample.java.so plz help me.
runtime class as follows
Runtime rt;
Process p,p1;
rt=Runtime.getRuntime();
p=rt.exec("javac samp.java");
p1=rt.exec("java
samp);
the samp program is to get two arguments using the InputStreamReader
and add it.
I need to pass the two arguments from current program to
sample.java.so plz help me.