Java 如何修复/消除这些Eclipse 2019.09错误?
我正在SLES 15机器上使用2019-09年的Eclipse CDT发行版(v4.13,构建id:I20190916-1045)(不问…) 启动Eclipse时,我在控制台上获得以下文本:Java 如何修复/消除这些Eclipse 2019.09错误?,java,eclipse,eclipse-cdt,slf4j,Java,Eclipse,Eclipse Cdt,Slf4j,我正在SLES 15机器上使用2019-09年的Eclipse CDT发行版(v4.13,构建id:I20190916-1045)(不问…) 启动Eclipse时,我在控制台上获得以下文本: org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will ret
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /home/lh156516/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.13.0.20190716-1624.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://470.fwk441444733:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://470.fwk441444733:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
我的问题是:
注意:我不是一个“Java家伙”,也不熟悉Eclipse平台的内部工作原理;把我想象成一个外行Eclipse用户。这是一个bug,自2016年起就被称为:
这看起来像是您的retro Eclipse中的插件/捆绑包之间的不兼容(m2e是默认情况下不包含在C/C++Eclipse IDE中的Maven支持)。但这些是关于日志初始化的警告,而不是错误,您可以忽略。Eclipse是一个OSGi应用程序,因此没有像普通Java应用程序那样可以更改的平面类路径。bundle通常在需要时激活(惰性),但创建SLF4J时没有考虑到可以在运行时启动和停止的bundle。无论如何,不要浪费时间在这样一个落后5个版本的旧Eclipse上。@howlger:那么,你是建议我更新到一个新版本并在那里试用吗?我说这只是一个可以忽略的噪音(请参阅和)。与此无关,请确保您没有使用不再维护的软件()。@howlger:我意识到这一点可以忽略。但是我想让它消失,而不是乱扔我的控制台。你能用EclipseIDEforC/C++开发人员2020-12重现这一点吗?我不能。