R
Rohit Gupta
I am having problem over and over again using it.
This time I cant even figure out whats the problem.
I am using getRuntime().exec() to run another java program( say p1) on
a button click in JFrames, it was working fine. I made some changes in
p1 after that and then compiled the code, now when I am again trying to
press the button to execute the file nothing is happening. Its not
executing. I wrote following lines of code to see what I am getting as
output after executing:
Process p=Runtime.getRuntime().exec(execute);
BufferedReader br=new BufferedReader(new
InputStreamReader(p.getInputStream()));
String line;
while((line=br.readLine())!=null)
{
System.out.println(line);
}
still I get nothing, I am not getting any clue as to what is happening.
A particular piece of code which was once working is not working now.
Where does the problem lie, any help would be highly appreciated...
Rohit Gupta
This time I cant even figure out whats the problem.
I am using getRuntime().exec() to run another java program( say p1) on
a button click in JFrames, it was working fine. I made some changes in
p1 after that and then compiled the code, now when I am again trying to
press the button to execute the file nothing is happening. Its not
executing. I wrote following lines of code to see what I am getting as
output after executing:
Process p=Runtime.getRuntime().exec(execute);
BufferedReader br=new BufferedReader(new
InputStreamReader(p.getInputStream()));
String line;
while((line=br.readLine())!=null)
{
System.out.println(line);
}
still I get nothing, I am not getting any clue as to what is happening.
A particular piece of code which was once working is not working now.
Where does the problem lie, any help would be highly appreciated...
Rohit Gupta