有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java SLF4J:未能在Eclipse上加载类

使用Win 10、Eclipse 2020年6月C++ IDE、JDK-130.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

如何解决这个问题?(pom.xml的解决方案不起作用,因为它不是Java IDE)


共 (1) 个答案

  1. # 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与这个问题无关