zoukankan      html  css  js  c++  java
  • [OFBiz]开发 一

    1.使用Eclipse3.7.1 + subclipse plugins 1.8.2(svn client)
    http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

    2.使用svn checkout apache-ofbiz-10.04的代码:
        Anonymous (Guest) Access
    To connect to the OFBiz SVN Respository for anonymous checkout use your SVN client command line tool:
    trunk : $ svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
    release11.04 : $ svn co http://svn.apache.org/repos/asf/ofbiz/branches/release11.04 ofbiz.11.04
    release10.04 : $ svn co http://svn.apache.org/repos/asf/ofbiz/branches/release10.04 ofbiz.10.04
    release09.04 : $ svn co http://svn.apache.org/repos/asf/ofbiz/branches/release09.04 ofbiz.09.04

    ofbiz团队采用eclipse开发.





    3. 代码check out后为330M.

    4. 分支release10.04 ofbiz.10.04, 最初的svn提交号是: 939941
    New release branch for releases os series 10.04: this is a feature freeze at the end of April 2010; in this branch only bug fixes will be committed; tags will be created out of it when releases will be issued.

    5.2010-04-01最初的r939941的工程, 使用45个src目录,和194个jar包.

    注:在classpath中有两处有问题:
    <classpathentry kind="src" path="framework/base/build/gen-src/javacc"/>
    <classpathentry kind="src" path="framework/sql/build/gen-src/javacc"/>
    在下载的apache-ofbiz-10.04.zip中有这个build目录
    E:\apache-ofbiz-10.04\framework\base\build\gen-src\javacc
    E:\apache-ofbiz-10.04\framework\sql\build\gen-src\javacc
    但是在check的代码中, 没有这个build目录.

    build目录是在执行了ant run-install后生成的, gen-src是在执行了下面两个模板文后, 生成的中间java文件:
    E:\apache-ofbiz-10.04\framework\sql\src\org\ofbiz\sql\Parser.jj
    E:\apache-ofbiz-10.04\framework\base\src\org\ofbiz\base\json\JSON.jj

    6.Ant的build.xml文件, 有33个target, 其中run-install需要执行编绎功能(不能使用JDK1.7).
    它先执行build这个target
    然后, 执行: ofbiz.jar install
    实现,数据库表的初始化, 也就是安装功能.


    [rmic] RMI Compiling 1 class to E:\eclipse-SDK-3.7.1-win32\ofbiz\apache-ofbiz-10.04\framework\service\build\classes
    [rmic] error: C:\Program Files\Java\jre7\lib\rt.jar(java/rmi/server/UnicastRemoteObject.class) 中的类文件格式无效。  major.minor 版本 "51.0" 太新,此工具无法识别。
    [rmic] error: 在 class org.ofbiz.service.rmi.RemoteDispatcherImpl 中未找到类 java.rmi.server.UnicastRemoteObject。
    [rmic] 2 个错误

  • 相关阅读:
    获取小程序码
    获取目标地与当前地距离
    小程序图片预览
    地图导航
    Jquery无缝滚动
    短信验证
    根据经纬度获取地址
    微信小程序中使用emoji表情
    小程序图片上传
    地球人类的牢笼
  • 原文地址:https://www.cnblogs.com/ofbiz/p/3145716.html
Copyright © 2011-2022 走看看