• openfire调试环境


    导入工程:

    File->New->project:

    选择“Java project from existing ant buildfile”

    再从菜单windows->show view->ant 打开ant工具对话框

    打开ant编译文件build.xml

    当编译完成后,在源码根目录下会生成一个target目录

    选择run选项点运行

    现在设置eclipse来调试openfire:

    点击openfire项目,在菜单栏中选择Run->Open Debug Dialog (Or  Debug->Debug Configurations)

    弹出一个对话框,在左侧菜单中右键点击Java Application,选择New创建启动配置

    1.在Debug窗口的Main选项卡中, 修改最上面Name文本框中的值,改成包含要启动的类的工程名openfire

    (没什么用,就是一个标识,随便起名字。)

    2.在Run窗口的Main选项卡中,

    project框中填写:openfire

    Main class 填写:org.jivesoftware.openfire.starter.ServerStarter

    点击Apply应用。

    3.点击进入Arguments选项卡,在上面那个框(VM arguments:)中填写

    -DopenfireHome="E:sourceimserveropenfiretargetopenfire"

    这里是我的openfire用ant编译后生成的目标位置,你的 openfire要根据你的项目位置来进行同步修改。

    点击Apply应用。

    4.点击进入Classpath选项卡,选中User Entries,然后点击右侧的Advanced按钮,会弹出一个小框,选择Add External Folders,单击OK。

    选择 E:sourceimserveropenfirei18n点OK 按钮将这个文件夹加入到Classpath选项卡中

    选择 E:sourceimserveropenfiretargetopenfire esources目录也加到 Classpath选项卡中

    选择Add External Jars:

    选择 E:sourceimserveropenfiretargetopenfirelib 中所有的jar文件。

    点击Apply应用。

    5.点击进入Common选项卡中,勾选Debug复选框。

    点击Apply应用。

    在进行这些配置之后,就算是基本完工了。

    可以直接点击配置框最下方的Run按钮,或者单击菜单栏Run->Run开始跑程序。

    工程->右键->Debug as->debug configurations:

    1、解压源码,把build/eclipse中的文件放到源码跟目录,

    2、修改文件名,在前面增加点。

    3、导入eclipse

    4、修改build path. 负载的包没有,下载导入 http://download.csdn.net/detail/kkkloveyou/4441060

  • 相关阅读:
    转载 :sql server 2005 无法删除数据库 "#Test",因为该数据库当前正在使用
    leetcode 1
    leetcode 2
    leetcode 242
    leetcode171
    leetcode 122
    leetcode 100
    算法:号码转换问题
    2014年10月29日 00:23 长沙
    算法:poj1066 宝藏猎人问题。
  • 原文地址:https://www.cnblogs.com/hujihon/p/3698221.html
Copyright © 2020-2023  润新知