开发者

Prevent RXTX from printing version info

I am using RXTX 2.1-7 on windows, and I have one issue. Whenever I run a program using the RXTX library开发者_JAVA百科, the following generic versioning info gets printed:

Stable Library

=========================================

Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7

This is fine to help debugging, but I would like to disable this printing now that I have the program set up properly. How do I prevent this print?


You can disable it by passing the system property -Dgnu.io.rxtx.NoVersionOutput=true, i.e. java -Dgnu.io.rxtx.NoVersionOutput=true yourclass.


DZone JavaLobby has an article titled How to Capture System.err and System.out which can help you capture the output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜