Jrebel3.1.2a+eclipse3.6使用配置

本文详细介绍了如何在Eclipse环境中配置JRebel插件,包括解压安装包、替换核心文件、安装Eclipse插件及配置运行参数等步骤,帮助开发者实现热部署,提高开发效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我的确很懒,8月中旬就配置好了,直到现在才开始写这篇文章说说配置,其实网上已经有很多人写过相同主题的东东了。但是这是我自己的配置,自己记一笔,以后万一机器重装系统什么的,也可以按图索骥来一遍,很快的配置完成。

 

第一步:

将附件中3.1.2a解压到本地。然后将附件中jrebel.jar文件拷贝到解压路径覆盖原先的jrebel.jar.

 

第二步:

安装eclipse的jrebel插件。插件路径为:http://www.zeroturnaround.com/update-site/。

安装完成后在window-->preferences中的jrebel中进行设置,如下图:

 

 

第三步:

Windows--> show view--> other--> server--> servers.双击你的Server配置项

点击“ Open launch configuration”。如下图:

 

在VM arguments选框中加入参数:
-noverify -javaagent:D:\jrebel-3.1.2a\jrebel.jar
-Drebel.dirs=E:\workspace\fileManager1\WebRoot\WEB-INF\classes
-Drebel.spring_plugin=true
-Drebel.struts2-plugin=true

如下图:

然后点“OK”后,选取某个项目,启动server,如下图:

之后在console控制台中,看见下列文字,则表明jrebel配置成功.

 

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

 JRebel 3.1.2a (201008121555)
   with Enterprise Add-On! (see http://jrebel.com/enterprise)
 (c) Copyright ZeroTurnaround OU, Estonia, Tartu.

 Over the last 1 days JRebel prevented 
 at least 0 redeploys/restarts saving you about 0 hours.

 This product is licensed to www.cfsoft.com
 for up to 9999 developer seats on site. 

 The following plugins are disabled at the moment: 
 * EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
 * Log4j plugin (set -Drebel.log4j-plugin=true to enable)
Reloads full configuration of log4j
 * Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)
Adds reloading of Stripes ActionBeans.
 * TopLink Plugin (set -Drebel.toplink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
 * TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)
Reloads SeesionFactory when configuration changes
 * WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)
WebObjects JRebel Plugin

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



JRebel: Directory 'E:\workspace\fileManager1\WebRoot\WEB-INF\classes' will be monitored for class changes.
 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值