SLF4J: 在Eclipse中未能加载类

huangapple go评论51阅读模式
英文:

SLF4J: Failed to load class at Eclipse

问题

Using win10, Eclipse June 2020 C++ IDE, jdk-13.0.2, IAR plugin.
I have a project that contains several sub-projects and it doesn't compile using the command line (eclipsec.exe).

The running command

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

The result is that "libDsp" is not compiled.

The log's output:

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

Why LibDsp isn't created?

How to solve this "SLF4J: Failed to load class 'org.slf4j.impl.StaticLoggerBinder'." issue? (The solution of pom.xml doesn't work because it's not Java IDE)

英文:

Using win10, Eclipse June 2020 C++ IDE, jdk-13.0.2, IAR plugin.
I have a project that contains several sub-projects and it doesn't compile using the command line (eclipsec.exe).

The running command

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

The result is that libDsp is not compiled.

The log's output:

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

Why LibDsp isn't created?

How to solve this SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". issue? (The solution of pom.xml doesn't work because it's not Java IDE)

答案1

得分: 0

项目没有编译成功,因为其中一些文件被“锁定”。
锁定文件的示例:
Error[Ms003]: 无法打开文件“Components\folder\file.o”以进行写入

在删除 Eclipse 的 .metadata 文件夹或特定文件 .metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources 之后,这些文件被释放。
slf4j 与此问题无关。

英文:

The project didn't compile because some of the files were "locked".
Example of a locked file:
Error[Ms003]: could not open file "Components\folder\file.o" for writing

After removing Eclipse .metadata folder or the specific file .metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources, the files were freed.

slf4j is not related to this problem.

huangapple
  • 本文由 发表于 2020年8月3日 19:50:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/63228892.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定