I'm writing a quick program that get the list of processes running. I'm hitting a snag. When I compile it says "cannot find symbol method getInputStream()" I'm not sure what I've done wrong. I'm sure I just didn't initialize it correct.
Thanks!
Thanks!
Code:
import java.io.*;
public class Processes{
public static void main(String args[]) throws IOException {
Runtime p = Runtime.getRuntime();
p.exec("tasklist");
BufferedReader procInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
}
}