Be alaways javaing...

          Loving Java
          posts - 43, comments - 5, trackbacks - 0, articles - 0
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          Eclipse中調(diào)試OfBiz

          Posted on 2008-09-08 18:23 追風(fēng)舞者 閱讀(2074) 評(píng)論(0)  編輯  收藏 所屬分類: OfBiz
          1.將Opentaps項(xiàng)目導(dǎo)入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 
              注意: 右側(cè)面板中的 Port 為上面紅色標(biāo)記,兩者必需一致。






          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 会宁县| 阿巴嘎旗| 曲沃县| 梨树县| 敦煌市| 茂名市| 中山市| 宁安市| 新平| 中方县| 石城县| 纳雍县| 古丈县| 乌兰县| 英山县| 大兴区| 庆云县| 吴旗县| 扎鲁特旗| 新建县| 义马市| 普兰县| 青海省| 通州区| 开化县| 涟水县| 尚志市| 吴桥县| 方城县| 宽城| 青铜峡市| 贵港市| 普陀区| 三江| 内江市| 石家庄市| 疏勒县| 龙泉市| 城步| 南涧| 烟台市|