开发者

Prevent RXTX from printing version info

开发者 https://www.devze.com 2023-03-11 07:39 出处:网络
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:

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

精彩评论

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