honzeland

记录点滴。。。

常用链接

统计

Famous Websites

Java

Linux

P2P

最新评论

2008年1月25日 #

Ubuntu下安装vmvare

参考: https://help.ubuntu.com/community/VMware/Workstation
下载tar包, rpm包安装没成功
sudo apt-get install ia32-libs这句好像没影响,因为测试机是amd-64
安装好后,登录guest OS后,再装vmware-tools,不要单独下载,之间vm-install vmware-tools就可以



posted @ 2008-01-25 17:41 honzeland 阅读(125) | 评论 (0)编辑 收藏

将Openfire导入到Eclipse中

1、 从Openfire SVN Server中dump出源码;
2、 Build: ant  & ant plugins
3、 将build后的target/openfire作为openfire_home
4、 在target/openfire下建立两个目录:src和classes,将dump下来的源码copy到src路径下,将classes设置为eclipse编译后的输出路径
5、 将$openfire_home/lib下的openfire.jar中src中存在的部分删除,剩下的部分作为新的openfire.jar,注意,在ubuntu下之间打开openfire.jar时,直接将/org/jivesoftware/admin, /org/jivesoftware/openfire, /org/jivesoftware/util三个目录删除,而对于/org/jivesoftware/database目录,只将源码中有的那部分删除,/org/jivesoftware下面还有一个隐藏目录/org/jivesoftware/stringprep,不能删除,接下来,将$openfire_home/lib下的jar包作为工程的Referenced Libraries.
6、 将取出来的工程下src/web/WEB-INF/classes/openfire_init.xml导入到eclipse的查询路径里,如将src/web/WEB-INF/classes目录作为eclipse的源目录,这样openfire_init.xml自动copy到$openfire_home/classses下面,将openfire_init.xml中的openfireHome设置为$openfire_home
7、 修改org.jivesoftware.openfire.starter.ServerStarter中的如下两个field,
           private static final String DEFAULT_LIB_DIR = "../lib";
           private static final String DEFAULT_ADMIN_LIB_DIR = "../plugins/admin/webapp/WEB-INF/lib";
改成:
           private static final String DIR_PREFIX = "$openfire_home";     // to be your own openfire_home
           private static final String DEFAULT_LIB_DIR = DIR_PREFIX + "lib";
           private static final String DEFAULT_ADMIN_LIB_DIR = DIR_PREFIX + "plugins/admin/webapp/WEB-INF/lib";

posted @ 2008-01-25 17:36 honzeland 阅读(763) | 评论 (3)编辑 收藏