How can is send something to an OutputStream?
ProcessBuilder pb = new ProcessBuilder("java", "-jar", "something.jar");
Process p = pb.start();
OutputStream out = p.getOutputStream();
//Already tried this:
InputStream in = new ByteArrayInputStream(sb.toString().getBytes());
in.transferTo(out); //But this says: This method is undefined for the type: InputStream