---
title: "eclipse jrebel热部署配置"
author: "Edision"
date: "2015-03-19T17:21:54Z"
tags: []
categories: ["Web前端"]
slug: "eclipse-jrebel"
draft: false
lastmod: "2015-03-19T17:21:54Z"
id: 2193997
url: "https://edision.iteye.com/blog/2193997"
---

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

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

![](http://dl.iteye.com/upload/attachment/339110/41b6b43b-e281-3d7d-9f63-d827217ef868.png)

 

在VM arguments选框中加入参数:  
\-noverify -javaagent:D:\\jrebel-3.1.2a\\jrebel.jar  
\-Drebel.spring\_plugin=true  
\-Drebel.struts2-plugin=true

//可以不加

-Drebel.dirs=E:\\workspace\\fileManager1\\WebRoot\\WEB-INF\\classes

 

如下图：

![](http://dl.iteye.com/upload/attachment/339112/8b743bda-51a7-3f83-bcd0-222d2ffb43a6.png "点击查看原始大小图片")

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

![](http://dl.iteye.com/upload/attachment/339114/b65bde93-6a7a-36aa-ba8f-8dde3ffbb4cc.png)

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

 

Java代码 [![复制代码](http://darkranger.iteye.com/images/icon_copy.gif)](http://darkranger.iteye.com/blog/796890 "复制代码") [![收藏代码](http://darkranger.iteye.com/images/icon_star.png)![](http://darkranger.iteye.com/images/spinner.gif)](/admin/blogs/ "收藏这段代码")

01. #############################################################
02. JRebel 3.1.2a (201008121555)
03. with Enterprise Add-On! (see http://jrebel.com/enterprise)
04. (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
05. Over the last 1 days JRebel prevented
06. at least 0 redeploys/restarts saving you about 0 hours.
07. This product is licensed to www.cfsoft.com
08. for up to 9999 developer seats on site.
09. The following plugins are disabled at the moment:
10. * EclipseLink Plugin (set -Drebel.eclipselink\_plugin=true to enable)
11. Reloads EntityManagerFactory when configuration changes
12. * Log4j plugin (set -Drebel.log4j-plugin=true to enable)
13. Reloads full configuration of log4j
14. * Stripes plugin 1.0.11 (set -Drebel.stripes\_plugin=true to enable)
15. Adds reloading of Stripes ActionBeans.
16. * TopLink Plugin (set -Drebel.toplink\_plugin=true to enable)
17. Reloads EntityManagerFactory when configuration changes
18. * TopLink Spring Plugin (set -Drebel.toplink\_spring\_plugin=true to enable)
19. Reloads SeesionFactory when configuration changes
20. * WebObjects Plugin (set -Drebel.webobjects\_plugin=true to enable)
21. WebObjects JRebel Plugin
22. #############################################################
23. JRebel: Directory 'E:\\workspace\\fileManager1\\WebRoot\\WEB-INF\\classes' will be monitored for class changes.

**\[java]** [view plain](http://blog.csdn.net/lujiancs/article/details/9154289 "view plain")[copy](http://blog.csdn.net/lujiancs/article/details/9154289 "copy")[print](http://blog.csdn.net/lujiancs/article/details/9154289 "print")[?](http://blog.csdn.net/lujiancs/article/details/9154289 "?")[![在CODE上查看代码片](https://code.csdn.net/assets/CODE_ico.png)](https://code.csdn.net/snippets/564979 "在CODE上查看代码片")[![派生到我的代码片](https://code.csdn.net/assets/ico_fork.svg)](https://code.csdn.net/snippets/564979/fork "派生到我的代码片")

01. #############################################################
02. JRebel 3.1.2a (201008121555)
03. with Enterprise Add-On! (see http://jrebel.com/enterprise)
04. (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
05. Over the last 1 days JRebel prevented
06. at least 0 redeploys/restarts saving you about 0 hours.
07. This product is licensed to www.cfsoft.com
08. for up to 9999 developer seats on site.
09. The following plugins are disabled at the moment:
10. * EclipseLink Plugin (set -Drebel.eclipselink\_plugin=true to enable)
11. Reloads EntityManagerFactory when configuration changes
12. * Log4j plugin (set -Drebel.log4j-plugin=true to enable)
13. Reloads full configuration of log4j
14. * Stripes plugin 1.0.11 (set -Drebel.stripes\_plugin=true to enable)
15. Adds reloading of Stripes ActionBeans.
16. * TopLink Plugin (set -Drebel.toplink\_plugin=true to enable)
17. Reloads EntityManagerFactory when configuration changes
18. * TopLink Spring Plugin (set -Drebel.toplink\_spring\_plugin=true to enable)
19. Reloads SeesionFactory when configuration changes
20. * WebObjects Plugin (set -Drebel.webobjects\_plugin=true to enable)
21. WebObjects JRebel Plugin
22. #############################################################
23. JRebel: Directory 'E:\\workspace\\fileManager1\\WebRoot\\WEB-INF\\classes' will be monitored for class changes.

```
#############################################################

 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.
```