Be alaways javaing...

          Loving Java
          posts - 43, comments - 5, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Eclipse中調試OfBiz

          Posted on 2008-09-08 18:23 追風舞者 閱讀(2079) 評論(0)  編輯  收藏 所屬分類: OfBiz
          1.將Opentaps項目導入Eclipse中
              Filee -> Import -> General -> Existing Projects into Workspace
          2.Eclipse中為.bsh,.ftl文件添加編輯器
            安裝Freemarker Eclipse plug-in.
            Windows > Preferences > General > Editors > File Associations and add "*.bsh" and associate it with the Scrapbook editor.
          3.修改 startofbiz.bat文件

          ECHO OFF
          REM ####################################################
          REM Licensed to the Apache Software Foundation (ASF) under one
          REM or more contributor license agreements.  See the NOTICE file
          REM distributed with this work for additional information
          REM regarding copyright ownership.  The ASF licenses this file
          REM to you under the Apache License, Version 2.0 (the
          REM "License"); you may not use this file except in compliance
          REM with the License.  You may obtain a copy of the License at
          REM
          REM http://www.apache.org/licenses/LICENSE-2.0
          REM
          REM Unless required by applicable law or agreed to in writing,
          REM software distributed under the License is distributed on an
          REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
          REM KIND, either express or implied.  See the License for the
          REM specific language governing permissions and limitations
          REM under the License.
          REM ########################################################
          ECHO ON

          "%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Duser.language=en -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log


          4.Eclipse菜單 Run -> Open Debug Dialog
             選擇 Remote Java Application 
              注意: 右側面板中的 Port 為上面紅色標記,兩者必需一致。






          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 合江县| 宜州市| 通辽市| 化州市| 凤山市| 无极县| 峨山| 白玉县| 大兴区| 柳河县| 淳安县| 天峻县| 大方县| 贵德县| 黑龙江省| 赤水市| 大新县| 兴化市| 大悟县| 五河县| 宝坻区| 安塞县| 平顶山市| 康定县| 辽宁省| 沿河| 夏邑县| 祁阳县| 通州区| 九寨沟县| 丽水市| 西充县| 滦南县| 长汀县| 太白县| 洞头县| 慈利县| 安宁市| 沙湾县| 合作市| 兴隆县|