JAR在Eclipse中创建失败。

huangapple 未分类评论48阅读模式
英文:

JAR Creation Failed in Eclipse

问题

我正在使用Eclipse Indigo、Jdk和Jre 1.8版本。
在创建JAR文件时出现了错误,类似于以下情况:

导出带有编译错误:comX/com/abc/component/ext/common/StringUtil.java

类路径上找不到或无法访问以下类文件:comX/com/abc/component/logging/AsLog$QItem.java

StringUtil.java中,我检查到有2个未解析的导入:

  1. import java.util.Arrays;
  2. import org.apache.log4j.Logger;

--> 仍然不知道解决方法

并且我已确保此文件存在:comX/com/abc/component/logging/AsLog$QItem.java

我已经尝试了清理并构建项目,但错误仍然存在。

这里是JAR文件规范
我在JAR清单规范中检查了此选项:使用工作区中的现有清单

非常感谢任何帮助。谢谢。

-xtin-

英文:

I am using Eclipse Indigo, Jdk and Jre 1.8.
I have errors when creating JAR files like this :

Exported with compile errors: comX/com/abc/component/ext/common/StringUtil.java

Class files on classpath not found or not accessible for: comX/com/abc/component/logging/AsLog$QItem.java

At StringUtil.java I checked there are 2 imports that not resolved

  1. import java.util.Arrays;
  2. import org.apache.log4j.Logger;

--> Still don't know what the solution

And I already make sure that this file is exist: comX/com/abc/component/logging/AsLog$QItem.java

I already Clean and Build Project, but the errors is still.

Here is the JAR File Specification
And I check for this option in JAR Manifest Specification : Use existing manifest from workspace.

Any help will be very appreciated. Thank you.

-xtin-

huangapple
  • 本文由 发表于 2020年7月23日 15:17:29
  • 转载请务必保留本文链接:https://java.coder-hub.com/63048859.html
匿名

发表评论

匿名网友

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

确定