【问题标题】:SLF4J: Failed to load class at EclipseSLF4J:无法在 Eclipse 中加载类
【发布时间】:2020-08-03 11:50:02
【问题描述】:

使用win10、Eclipse June 2020 C++ IDE、jdk-13.0.2、IAR插件。 我有一个包含多个子项目的项目,它不能使用命令行 (eclipsec.exe) 进行编译。

运行命令

C:\eclipse\eclipsec.exe -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild  -no-indexer -data . -import lib1 -import libDsp -build PrjSystem/Debug

结果是libDsp没有编译。

日志的输出:

Adding appender for logfile C:\work\.metadata\IAR-plugins.log
Opening 'LibDsp'.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Opening 'Lib1'.
Opening 'Lib2'.
...
Warning: Nashorn engine is planned to be removed from a future JDK release

为什么没有创建 LibDsp?

如何解决这个SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 问题? (pom.xml的解决方法因为不是Java IDE所以不行)

【问题讨论】:

    标签: java c++ eclipse iar


    【解决方案1】:

    项目未编译,因为某些文件已“锁定”。
    锁定文件示例: Error[Ms003]: could not open file "Components\folder\file.o" for writing

    删除 Eclipse .metadata 文件夹或特定文件 .metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources 后,文件被释放。

    slf4j与此问题无关。

    【讨论】:

      猜你喜欢
      • 2011-11-17
      • 1970-01-01
      • 1970-01-01
      • 2012-08-08
      • 2016-10-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多