Java Webstart 标准输入和标准输出

发布于 2024-11-15 15:59:48 字数 256 浏览 1 评论 0原文

有没有办法将 Stdin 和 Stdout/Stderr 路由到 java webstart 中的另一个进程? 我想做的是让 java webstart 应用程序与桌面上的其他进程进行通信。理想情况下,我希望能够将字符串发送到 java webstart 的标准输入,该字符串将被处理,然后输出一些结果。这在java webstart中可能吗?

java webstart 应用程序可以从命令行或从另一个应用程序中调用(通过 win7 和 OSX 中支持的默认应用程序功能打开)。

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 would 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).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我的影子我的梦 2024-11-22 15:59:48

您将如何调用所述 java web start 应用程序,以便可以将其连接到任何东西?该技术不允许这样做。

您可以提供 URL 参数,然后从中读取数据。 URL 可以指向本地文件。

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.

酒几许 2024-11-22 15:59:48

我不知道对于 webstart 是否有所不同(也许是因为权限),但在 SE 中,您可以使用 System.setIn(InputStream in) 和 System.setOut(PrintStream out )

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文