jrebel在Myeclipse中的使用

JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。
这样再也不用修改java文件之后频繁的去重启Web Server了,用起来非常的顺手。本版本jrebel5,已破解,放心使用。在官网下载试用的期限为30天,地址:http://zeroturnaround.com/software/jrebel/download/#!/

将下载的jrebel.jar放到随便一个路径,例如E:\jrebel.jar
Myeclipse中window-preferences-Myeclipse-servers-tomcat-tomcat 6.x-jdk-Optional java vm arguments这个框里面输入java vm的参数
-noverify
-javaagent:E:\jrebel.jar
-Drebel.dirs=E:\Workspaces\jghq\WebRoot\WEB-INF\classes
-Drebel.spring_plugin=true
-Drebel.struts2-plugin=true

说明:
-javaagent就是你存放JRebel的路径
-Drebel.dirs 指定要监控的 编译后的java 文件目录,这个目录和上边javarebel.jar的路径千万不要有空格和中文,最好连.也不要有。
-Drebel.spring_plugin 表示对Spring的支持,默认是false
-Drebel.struts2-plugin=true,这里是-而不是_,千万不要自作聪明

配置完上面后,还需要关闭tomcat的应用程序的reloadable设置
接下来,可以启动Tomcat服务了,如果配置正确,启动服务后,会有以下提示
[2013-03-05 18:07:03] 
[2013-03-05 18:07:03] #############################################################
[2013-03-05 18:07:03]
[2013-03-05 18:07:03] JRebel 5.0.0 (201206080930)
[2013-03-05 18:07:03] (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[2013-03-05 18:07:03]
[2013-03-05 18:07:03] Over the last 1 days JRebel prevented
[2013-03-05 18:07:03] at least 0 redeploys/restarts saving you about 0 hours.
[2013-03-05 18:07:03]
[2013-03-05 18:07:03] This product is licensed to Unlimited
[2013-03-05 18:07:03] For FUN! Unlimited! Enjoy!
[2013-03-05 18:07:03]
[2013-03-05 18:07:03] The following plugins are disabled at the moment:
[2013-03-05 18:07:03] * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)
[2013-03-05 18:07:03] * Click plugin (set -Drebel.click_plugin=true to enable)
[2013-03-05 18:07:03] * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
[2013-03-05 18:07:03] * Jersey plugin (set -Drebel.jersey_plugin=true to enable)
[2013-03-05 18:07:03] * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)
[2013-03-05 18:07:03] * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)
[2013-03-05 18:07:03] * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)
[2013-03-05 18:07:03] * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)
[2013-03-05 18:07:03]
[2013-03-05 18:07:03] #############################################################
[2013-03-05 18:07:03]
[2013-03-05 18:07:03]

[2013-03-05 18:07:03] JRebel: Directory 'E:\Workspaces\jghq\WebRoot\WEB-INF\classes' will be monitored for class changes.
[2013-03-05 18:07:03]

如果出上以上提示,则表示JavaRebel已经配置成功。
接下来大家可以在MyEclipse中修改代码,进行编译进行测试。
如果MyEclipse提示, 则直接关接不理它即可,你发现你修改后的 class文件已经被jvm加载了。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值