I have an application I've built that uses a non-Java executable that it calls via ProcessBuilder:
ProcessBuilder pb = new ProcessBuilder(invocation);
pb.redirectErrorStream(true);
Process proc = pb.start();
InputStream is = proc.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
However, I'd like to bundle that app neatly into the jar file itself, instead of requiring it be placed outside in the same directory. Is there a way to run this app without extracting it?
If I need to drop ProcessBuilder, that would be fine, as long as it works. :)