Java Webstart Stdin and Stdout
Is there a way to route Stdin and Stdout/Stderr to another process within java webstart? What i want to do is have a java webstart application communicate with other processes on the desktop. Ideally i want to be able to send strings to the stdin of the java webstart which wo开发者_开发问答uld the be processed and then output some result. Is this possible in java webstart?
The java webstart application would be invoked from the commandline or from within another application (through the open with default application feature supported in win7 and OSX).
How would you invoke said java web start application so you have a possibility to connect it to anything? The technology does not allow for this.
You can provide an URL argument and then read data from that. An URL can point to a local file.
I don't know if it's different for webstart (because of permissions, perhaps) but in SE, you could do this using System.setIn(InputStream in)
and System.setOut(PrintStream out)
精彩评论