javaws 退出代码真的坏了吗? [英] Are javaws exit codes really broken?

查看:29
本文介绍了javaws 退出代码真的坏了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力使用 JNLP 自动执行相同的 Java 代码,但我惊讶地发现,jawaws 没有给我一个有效的返回码.

I was working to automate same java code execution using JNLP and I was surprised to discover that jawaws did not gave me a valid return code.

原始执行行是:

javaws -wait http://example.com:666/missing.jnlp

这确实显示了一个带有无法启动应用程序."消息的丑陋窗口.

This did showed an ugly window with "Unable to launch application." message.

正如你所想象的,我试图让它不需要 GUI 并尝试过:

As you can image I tried to make this not require a GUI and tried:

javaws -wait -Xnosplash -import -silent http://example.com:666/missing.jnlp

但是即使这个命令失败,它仍然会返回0,成功.

But even if this command fails, it will still return 0, success.

如何解决这个问题?

推荐答案

这是Oracle/Sun 错误跟踪器中的错误 ID 6898437,并在最近的版本中得到修复.

This is Bug ID 6898437 in the Oracle/Sun bug tracker, and is fixed in more recent releases.

这篇关于javaws 退出代码真的坏了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆