Please I am relatively new to Java and would really appreciate your help. Can anyone please tell me what I am doing wrong. I'm trying to send a string to an oracle and save it's output. My program just hangs when I get to this block of code.
try {
Process proc = Runtime.getRuntime().exec("ku1840.oracle");
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
proc.getOutputStream()));
bw.write(myAttackData.mString);
bw.flush();
BufferedReader br = new BufferedReader(new InputStreamReader(
proc.getInputStream()));
String line = br.readLine();
br.close();
System.out.println(line);
}
catch (IOException e) {
e.printStackTrace();
}