JRebel 热插件使用手记

1.1 安装IDE-rebel插件
1. Eclipse下选择帮助-软件更新-添加更新地址

jrebel3.1 http://www.zeroturnaround.com/update-site/

或是选择离线下载

http://www.zeroturnaround.com/update-site/update-site.zip

(The WTP plugin is only necessary if you run the server from Eclipse.)


2. 重启eclispe

注:其它IDE安装,可以见jrebel3包下的doc\index.html ,包括IntelliJ IDEA ,Netbeans 6.5, Maven 2.x

1.2 配置jrebel路径、调试
1. 设置jrebel包位置
To use JavaRebel in the Run Configurations later on we’ll need to set a global location of the javarebel.jar. You can do this from Window » Preferences » JavaRebel. Just pinpoint the path to your javarebel.jar location.

2. 设置jrebel debug 过滤器包
Go to Window » Preferences and from there to Java » Debug » Step Filtering.

Check Use Step Filters, Filter synthetic methods, and Step through filters. Now check all the default filters and use the Add Filter button to add com.zeroturnaround.* and org.zeroturnaround.*.


设置自动编译
Now go to Project » Build automatically and make sure it is checked.

1.3 自动生成rebel.xml文件
1. 创建工程完成后,生成rebel.xml文件用以配置class文件位置;


2. 添加JVM加载项,打开日志功能;调试rebel在controll输出日志;

3. 重启服务器,输出日志


更多图示:

http://www.zeroturnaround.com/jrebel/eclipse-jrebel-tutorial/
1.4 重启tomcat后jrebel日志输出,被监视的目录


#############################################################

JRebel 3.1 (201006011508)

with Enterprise Add-On! (see http://jrebel.com/enterprise)

(c) Copyright ZeroTurnaround OU, Estonia, Tartu.


Over the last 1 days JRebel prevented

at least 1 redeploys/restarts saving you about 0 hours.


This product is licensed to Unlimited

For FUN! Unlimited! Enjoy!

……
#############################################################

JRebel: Directory 'E:\\webapp\admin\build\classes' will be monitored for changes.


1.5进行JAVA调试工作,即时保存即时刷新,加载类不再重启服务


相关资源:

官网:http://www.zeroturnaround.com/jrebel/eclipse-jrebel-tutorial/

jrebel 3.1 下载 http://www.zeroturnaround.com/jrebel/current/

jrebel 插件 http://www.zeroturnaround.com/jrebel/plugins/

FAQ:http://www.zeroturnaround.com/jrebel/faq/#How_does_JRebel_work


构建rebel.xml
Click on your project and pick Generate rebel.xml.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
eclipse和网上找到的破解包提取打包成无依赖,独立java程序可用的版本。独立java程序启动的时候增加如下的JVM参数即可 -server -Xmx512m -XX:MaxPermSize=128m -Djava.awt.headless=true -Drebel.spring_plugin=true -noverify -javaagent:D:\apps\jrebel6.4.3\jrebel.jar -Xbootclasspath/p:D:/apps/jrebel6.4.3/rebelboot.jar -Drebel.base=D:\apps\jrebel6.4.3\.jrebel -Drebel.disable_update=true D:\apps\jrebel6.4.3这个为解压后的路径,rebel.base参数指定了jrebel.lic所在的位置,因此无需拷贝到用户目录下。 控制台可以看到如下的输出表示jrebel配置成功。 2016-07-13 11:42:59 JRebel: WARN You are running JRebel using the -javaagent option on a system where -agentpath is supported. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: JRebel Agent 6.4.3 (201604210950) 2016-07-13 11:43:02 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Over the last 1 days JRebel prevented 2016-07-13 11:43:02 JRebel: at least 1 redeploys/restarts saving you about 0 hours. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Licensed to VIMACER (ZeroTurnaround) 2016-07-13 11:43:02 JRebel: with the following restrictions: 2016-07-13 11:43:02 JRebel: ### Hello World Cracked ### :) 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: License type: enterprise 2016-07-13 11:43:02 JRebel: Valid from: July 14, 2014 2016-07-13 11:43:02 JRebel: Valid until: August 18, 2888 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:04 JRebel: Monitoring Log4j configuration in 'xxxxx/log4j.properties'. 2016-07-13 11:43:06 JRebel: Monitoring properties in 'xxxxx\xxxx.properties'. 2016-07-13 11:43:32 JRebel: Reloading class 'xxxxx'. 2016-07-13 11:43:32 JRebel: Reconfiguring bean 'xxxxx' [xxxxx]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值