ofbiz13.07.01 ant编译错误(class file for org.ofbiz.widget.ContentWorkerInterface not found )
来源:互联网 发布:大数据项目经验 编辑:程序博客网 时间:2024/05/19 08:25
环境:centos6.5/jdk8/ant1.9.2
将apache-ofbiz-13.07.01.zip解压后,导入eclipse中,选择根目录下build.xml->run as->ant build时出现如下错误:
init:
prepare:
classes:
[javac16] Compiling 11 source files to /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/build/classes
[javac16] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac16] /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java:139: error: cannot access DataResourceWorkerInterface
[javac16] ByteBuffer dataContent = DataResourceWorker.getContentAsByteBuffer(delegator, dataResource.getString("dataResourceId"), null, null, locale, null);
[javac16] ^
[javac16] class file for org.ofbiz.widget.DataResourceWorkerInterface not found
[javac16] /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java:229: error: cannot access ContentWorkerInterface
[javac16] ContentWorker.renderContentAsText(dispatcher, delegator, partyContent.getString("contentId"), outWriter, inContext, locale, mimeTypeId, null, null, false);
[javac16] ^
[javac16] class file for org.ofbiz.widget.ContentWorkerInterface not found
[javac16] 2 errors
BUILD FAILED
/opt/ofbiz/apache-ofbiz-13.07.01/build.xml:229: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/build.xml:248: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/macros.xml:39: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/common.xml:91: Compile failed; see the compiler error output for details.
解决办法:
在application 下的order, party, product & workeffort中每个根目录下的build.xml添加
<fileset dir="../../framework/widget/build/lib" includes="*.jar"/>
重新编译,错误解决。
参考:http://ofbiz.135035.n4.nabble.com/Errors-compiling-ofbiz-13-07-under-debian-7-td4666555.html
- ofbiz13.07.01 ant编译错误(class file for org.ofbiz.widget.ContentWorkerInterface not found )
- ANT 编译失败:Class not found: org.eclipse.jdt.core.JDTCompilerAdapter
- Action class [] not found - action - file:/...:/.../.metadata/.plugins/org.ec
- elasticsearch class file for java.lang.AutoCloseable not found
- Flex Builder 编译老出现 file not found 的错误
- org.apache.catalina.ant.DeployTask Not Found
- class not found for laravel
- Ant: Class not found: javac1.8
- Ant: Class not found: javac1.8
- class not found错误解决办法
- Class 'PDO' not found 错误
- library not found for -lz.1.2.3 编译错误 解决
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- P121 10
- C++ 重载,重定义(覆盖),重写名字隐藏
- iOS开发系列之常用自定义控件开发集—自定义UIDatePicker控件开发
- 【2015/4/20】servlet学习笔记6--cookie与session+servletContext+操作文件
- Instruction-Level Pipelining
- ofbiz13.07.01 ant编译错误(class file for org.ofbiz.widget.ContentWorkerInterface not found )
- iOS8下的开发变化
- Hbase单机搭建
- 语言基础
- 面向对象(一)
- 面向对象(二)
- 异常
- 梦工厂动画CEO:不迷信大数据,只迷信耐心与好故事
- 多线程