Be alaways javaing...

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

          Eclipse中調試OfBiz

          Posted on 2008-09-08 18:23 追風舞者 閱讀(2074) 評論(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 為上面紅色標記,兩者必需一致。






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


          網站導航:
           
          主站蜘蛛池模板: 胶南市| 剑阁县| 忻州市| 东城区| 凉山| 洞头县| 璧山县| 姜堰市| 儋州市| 贺州市| 浮山县| 安泽县| 江都市| 吉林市| 奉贤区| 通榆县| 同江市| 葫芦岛市| 古丈县| 绥芬河市| 敦化市| 南华县| 淅川县| 司法| 甘德县| 黔江区| 饶河县| 称多县| 七台河市| 深水埗区| 霞浦县| 腾冲县| 化隆| 舞阳县| 平武县| 塔城市| 安泽县| 清苑县| 光泽县| 樟树市| 延吉市|