每当我显示 JFileChooser
对话框时,stderr 上都会出现以下错误消息:
log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
log4cplus:ERROR Please initialize the log4cplus system properly.
尽管我的常规输出采用 UTF-8 格式,但错误消息还是以 UCS-2 格式生成。如何消除这个错误?
我在 Windows 7 Ultimate 64 位上使用 JDK 1.7.0_21。
最佳答案
根据 log4cplus 版本,您也许可以通过将全局环境变量 LOG4CPLUS_LOGLOG_QUIETMODE
定义为 1
来关闭这些消息。
关于java - 来自 JFileChooser 的奇怪错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21859595/