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 為上面紅色標記,兩者必需一致。






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


          網站導航:
           
          主站蜘蛛池模板: 屯昌县| 甘洛县| 竹北市| 清远市| 绥德县| 益阳市| 龙里县| 双城市| 同德县| 昌江| 东宁县| 通山县| 延津县| 庆城县| 厦门市| 绥滨县| 陵川县| 齐齐哈尔市| 顺昌县| 铜山县| 绩溪县| 安达市| 军事| 鹿泉市| 工布江达县| 城步| 和硕县| 汉源县| 永州市| 法库县| 宝鸡市| 阿拉善右旗| 边坝县| 盘山县| 上蔡县| 清涧县| 昔阳县| 方正县| 榕江县| 金塔县| 高阳县|