java.awt.Desktop.getDesktop().browse(uri)在ubuntu上弹出一些调试消息。如何禁用此功能?

java.awt.Desktop.getDesktop().browse(uri)在ubuntu上弹出一些调试消息。如何禁用此功能?,java,ubuntu,Java,Ubuntu,我有一个java控制台应用程序,需要打开浏览器。我使用的代码如下所示 java.awt.Desktop.getDesktop().browse(uri) 它确实会用URL打开浏览器,但会在控制台上打印出来。我怎样才能禁用它?我不想在我的客户使用应用程序时打印出来 如果这是Firefox可执行文件的输出,我如何将其重定向到output,以便用户看不到它 Firefox hook launcher starting up run-parts: executing /usr/lib/ppt/fir

我有一个java控制台应用程序,需要打开浏览器。我使用的代码如下所示

java.awt.Desktop.getDesktop().browse(uri) 
它确实会用URL打开浏览器,但会在控制台上打印出来。我怎样才能禁用它?我不想在我的客户使用应用程序时打印出来

如果这是Firefox可执行文件的输出,我如何将其重定向到output,以便用户看不到它

Firefox hook launcher starting up
run-parts: executing /usr/lib/ppt/firefox-hooks/00ppt-firefox-certs
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
Notice: Trust flag u is set automatically if the private key is present.
run-parts: executing /usr/lib/ppt/firefox-hooks/10firefox-disable-bad-prefs
Firefox hook launcher finished

2017年的相关SO问题,没有答案,但可能有帮助的评论:。刚刚注意到该问题的编辑部分指出:“这似乎是因为我正在运行的托管操作系统在firefox周围有一个包装器,它的shebang定义为
#!/bin/bash-x
,导致脚本执行冗长。”2017年的相关SO问题没有答案,但可能有帮助的评论:。刚刚注意到该问题的编辑部分指出:“这似乎是因为我运行的托管操作系统在firefox周围有一个包装器,它的shebang定义为
#!/bin/bash-x
,导致脚本执行冗长。”