英文:
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个未解析的导入:
import java.util.Arrays;
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
import java.util.Arrays;
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-
专注分享java语言的经验与见解,让所有开发者获益!
评论