Hi.
I built the code bellow to print some characters coming from a InputStream.
But, nothing is being printed. I guess my InputStream is empity.
What is wrong?
=====================
my code:
...
String s = new String("javac myFile.java");
Process processo = Runtime.getRuntime().exec(s);
BufferedInputStream in = new BufferedInputStream(processo.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
while ((s = reader.readLine()) != null) {
System.out.println(reader.readLine());
}
...
=================
Additional informatin: my code above doesn't rise exceptions.
Thanks in advance.
Rodrigo.