So here is my code:
System.out.print("hellow");
try {
int x;
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("java CPU/memory");
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line = null;
while((line = in.readLine())!=null) {
System.out.println(line);
}
proc.waitFor();
} catch (Throwable t)
{
t.printStackTrace();
}
$
When I run java CPU/CPU in cmd I get "hellowhello" with exit value of 0
But when I run it in eclipse I just get "hello" with exit value of 1
Any idea?