Are javaws exit codes really broken?

…衆ロ難τιáo~ 提交于 2019-12-19 08:14:30

问题


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.

Original execution line was:

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

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

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

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

How to solve this?


回答1:


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



来源:https://stackoverflow.com/questions/3803823/are-javaws-exit-codes-really-broken

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!