javaws出口代码真的坏了吗? [英] Are javaws exit codes really broken?
本文介绍了javaws出口代码真的坏了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用JNLP来自动化相同的Java代码执行,但我惊讶地发现颚虎没有给我有效的返回码.
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屋!
查看全文