I try to get my penplotter to work from within java. I have a start but I don't know how to continue. This is what I have:
public static void main(String[] args) {
try {
Runtime runTime = Runtime.getRuntime();
Process process = runTime.exec("chiplotle");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line = null;
System.out.println("this prints fine");
while ((line = in.readLine()) != null) {
System.out.println(line);
}
System.out.println("it never reaches this...");
}
catch (IOException e) {
e.printStackTrace();
}
}
This is the output in the console:

I typed the 11 myself. But it doesn't do anything with it. Also it never prints:
System.out.println("it never reaches this...");
So it looks like my program is halted for input, is that correct? And how can I get further?