eclipse使用jrebel

简介:
  jrebel

 

注:以下都是网上收集整理的,可能不全,仅限于学习和研究使用。

 

JavaRebel是一个工具,主要是用于热加载,比如说在Tomcat之类的应用服务器中,更新了class或者某些资源文件,使用了JRebel之后,就不需要重新启动应用服务器。这里有一点先声明一下,本文只是破解仅限于学习和研究使用,勿用于其他用途。

下载地址:http://www.zeroturnaround.com/jrebel/download/     下载下来的是一个Zip压缩包,打开之后会发现一个jrebel.jar,这就是其最重要的运行包了。其他都是一些文档和插件。

PS. rebel出了免费社区版,参见:

http://zeroturnaround.com/blog/free-version-of-jrebel-social/

一、安装包准备

1. Jrebel.jar 核心JAR包,http://zeroturnaround.com/jrebel/prev-releases/ 上面进行下载。

安装 JRebel Eclipse插件进入 Help » Install New Software... 并且输入下面的URL :http://www.zeroturnaround.com/update-site/

2. update-site.zip jrebel Eclipse插件http://www.zeroturnaround.com/update-site/update-site.zip

 

二、配置Eclipse

(1)、Eclipse中配置 window->preference->tomcat->JVM Settings,加入以下参数

-Drebel.spring_plugin=true 支持spring框架

-Drebel.aspectj_plugin=true 支持aspectj

-Drebel.struts2_plugin=true 支持strut2

-javaagent:D:/jrebel.jar 这里自行修改jrebel.jar正确的路径

-Drebel.dirs=F:/Project/test/WebContent/WEB-INF/classes,F:/Project/test/WebContent

-Dmyproject.root=D:/project/operamasks/workspaces/xxxx -Drebel.disable_update=true

-noverify

[(-javaagent 下载的jrebel.jar的路径,-Drebel.dirsc 项目的class文件的路径, -Dmyproject.root的值表示当前的需要热部署的工程路径)]

 

三、安装Eclipse插件

安装JRebel Eclipse 插件

Help » Install New Software

然后通过 如下 URL :http://www.zeroturnaround.com/update-site/

如果要离线下载的话,可以通过下载离线包的方式进行:http://www.zeroturnaround.com/update-site/update-site.zip

/**************************************************

jrebel 下载:

官网地址:http://www.zeroturnaround.com/jrebel/ (试用30天)

破解地址:http://dl.dbank.com/c086engzbb

**************************************************/

--------------------------------------------------------------



 

 

 

四、配置完上面后,还需要关闭tomcat的应用程序的reloadable设置

<Context path="/hello"  reloadable=" false

" docBase="D:/project"  />

JReble log

如果你想选中Enable debug logging ,需要配置日志信息。点击Lauch JRebel Agent Settings ,可以选中Show JRebel message in standard output(在控制台输出打印),并且Log to file并且输出到日志文件中。    如果不设置日志路径,则可能会提示找不到日志的信息。点击Open JRebel agent,查看jrebel.properties,jrebel.info目录。

参考

【http://zeroturnaround.com/software/jrebel/learn/eclipse-jrebel-tutorial/】

【https://zeroturnaround.com/software/jrebel/download/installing-jrebel-plugin-for-eclipse/】

【http://manuals.zeroturnaround.com/jrebel/】

有更加好的破解

【http://blog.csdn.net/sensisoft/article/details/20010615】

破解jrebel方法

【http://www.blogjava.net/usherlight/archive/2009/10/15/298449.html】

【http://www.sdandroid.com/2014/02/jrebel_6430.html】

 

Java代码   收藏代码
  1. JRebel: Starting logging to file: C:\Users\Administrator\.jrebel\jrebel.log  
  2. 2015-03-18 23:27:34 JRebel:    
  3. 2015-03-18 23:27:34 JRebel:  #############################################################  
  4. 2015-03-18 23:27:34 JRebel:    
  5. 2015-03-18 23:27:34 JRebel:  JRebel Legacy Agent 6.1.1 (201503111717)  
  6. 2015-03-18 23:27:34 JRebel:  (c) Copyright ZeroTurnaround AS, Estonia, Tartu.  
  7. 2015-03-18 23:27:35 JRebel:    
  8. 2015-03-18 23:27:35 JRebel:  Over the last 1 days JRebel prevented  
  9. 2015-03-18 23:27:35 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.  
  10. 2015-03-18 23:27:35 JRebel:    
  11. 2015-03-18 23:27:35 JRebel:  Licensed to wei huang  
  12. 2015-03-18 23:27:35 JRebel:    
  13. 2015-03-18 23:27:35 JRebel:  License type: evaluation  
  14. 2015-03-18 23:27:35 JRebel:  Valid from: March 182015  
  15. 2015-03-18 23:27:35 JRebel:  Valid until: April 12015  
  16. 2015-03-18 23:27:35 JRebel:    
  17. 2015-03-18 23:27:35 JRebel:  You are using an EVALUATION license.  
  18. 2015-03-18 23:27:35 JRebel:  Days left until license expires: 14  
  19. 2015-03-18 23:27:35 JRebel:    
  20. 2015-03-18 23:27:35 JRebel:  To extend your evaluation or purchase a license,  
  21. 2015-03-18 23:27:35 JRebel:  contact sales@zeroturnaround.com.  
  22. 2015-03-18 23:27:35 JRebel:    
  23. 2015-03-18 23:27:35 JRebel:  If you think this is an error, contact support@zeroturnaround.com.  
  24. 2015-03-18 23:27:35 JRebel:    
  25. 2015-03-18 23:27:35 JRebel:    
  26. 2015-03-18 23:27:35 JRebel:  #############################################################  
  27. 2015-03-18 23:27:35 JRebel:    
  28. 2015-03-18 23:27:35 JRebel: WARN   
  29. 2015-03-18 23:27:35 JRebel: WARN You have multiple 'D:\software\eclipse\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\plugins\org.zeroturnaround.eclipse.embedder_6.1.1.RELEASE-201503121801\jrebel\jrebel.jar's as -javaagent in your server startup script  
  30. 2015-03-18 23:27:35 JRebel: WARN   
  31. 三月 182015 11:27:36 下午 org.apache.catalina.core.AprLifecycleListener init  
  32. 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_55\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Common Files\NetSarang;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_55\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\cmd;D:\software\apache-maven-3.0.5/bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;.  
  33. 三月 182015 11:27:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin  
  34. 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:tv_mobile' did not find a matching property.  
  35. 三月 182015 11:27:36 下午 org.apache.coyote.AbstractProtocol init  
  36. 信息: Initializing ProtocolHandler ["http-bio-8080"]  
  37. 三月 182015 11:27:36 下午 org.apache.coyote.AbstractProtocol init  
  38. 信息: Initializing ProtocolHandler ["ajp-bio-8009"]  
  39. 三月 182015 11:27:36 下午 org.apache.catalina.startup.Catalina load  
  40. 信息: Initialization processed in 1057 ms  
  41. 三月 182015 11:27:36 下午 org.apache.catalina.core.StandardService startInternal  
  42. 信息: Starting service Catalina  
  43. 三月 182015 11:27:36 下午 org.apache.catalina.core.StandardEngine startInternal  
  44. 信息: Starting Servlet Engine: Apache Tomcat/7.0.53  
  45. 2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\target\classes' will be monitored for changes.  
  46. 2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\target\m2e-wtp\web-resources' will be monitored for changes.  
  47. 2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\src\main\webapp' will be monitored for changes.  
  48. 三月 182015 11:27:45 下午 org.apache.catalina.core.ApplicationContext log  
  49. 信息: No Spring WebApplicationInitializer types detected on classpath  
  50. 2015-03-18 23:27:45 JRebel-Log4j: Monitoring Log4j configuration in 'file:/D:/software/eclipse/workspace2/tv_mobile/target/classes/log4j.properties'.  
  51. 三月 182015 11:27:45 下午 org.apache.catalina.core.ApplicationContext log  
  52. 信息: Initializing Spring root WebApplicationContext  
  53. 2015-03-18 23:27:45 JRebel-Spring: Monitoring Spring bean definitions in 'D:\software\eclipse\workspace2\tv_mobile\target\classes\beans.xml'.  
  54. 2015-03-18 23:27:48 JRebel-Spring: Monitoring properties in 'D:\software\eclipse\workspace2\tv_mobile\target\classes\jdbc.properties'.  
  55. 初始化字典  
  56. Hibernate:   
  57.     /* criteria query */ select  
  58.         this_.id as id1_5_0_,  
  59.         this_.description as descript2_5_0_,  
  60.         this_.groupId as groupId3_5_0_,  
  61.         this_.key2 as key4_5_0_,  
  62.         this_.value as value5_5_0_   
  63.     from  
  64.         t_dictionary this_   
  65.     order by  
  66.         this_.groupId asc,  
  67.         this_.key2 asc  
  68. 三月 182015 11:27:57 下午 org.apache.catalina.core.ApplicationContext log  
  69. 信息: Initializing Spring FrameworkServlet 'spring2'  
  70. 2015-03-18 23:27:57 JRebel-Spring: Monitoring Spring bean definitions in 'D:\software\eclipse\workspace2\tv_mobile\target\m2e-wtp\web-resources\WEB-INF\spring2-servlet.xml'.  
  71. 三月 182015 11:27:58 下午 org.apache.coyote.AbstractProtocol start  
  72. 信息: Starting ProtocolHandler ["http-bio-8080"]  
  73. 三月 182015 11:27:58 下午 org.apache.coyote.AbstractProtocol start  
  74. 信息: Starting ProtocolHandler ["ajp-bio-8009"]  
  75. 三月 182015 11:27:58 下午 org.apache.catalina.startup.Catalina start  
  76. 信息: Server startup in 21843 ms  
相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
相关文章
|
存储 Java 应用服务中间件
Eclipse中JRebel热部署神器的配置
直接下官方正版的就好了 eclipse->help->eclipse marketplace 搜索JRebel
331 0
Eclipse中JRebel热部署神器的配置
|
Android开发
Eclipse_插件_04_热部署_JRebel
一、License Server  推荐使用License Server方式激活。 如下图:填写License server 以及邮箱,然后点击激活即可     最新可用License server 地址如下: http://139.
1686 0
|
Java 应用服务中间件 Android开发
|
3月前
|
Java Maven Android开发
在Eclipse里配置Maven插件
Maven是一款比较常用的Java开发拓展包,它相当于一个全自动jar包管理器,会导入用户开发时需要使用的相应jar包。使用Maven开发Java程序,可以极大提升开发者的开发效率。下面我就跟大家介绍一下如何在Eclipse里安装和配置Maven插件。
46 0
|
4月前
|
Java Android开发
eclipse安装SpringBoot插件的无敌办法
eclipse安装SpringBoot插件的无敌办法
57 0
|
4月前
|
Java Android开发 Spring
在 Eclipse 中安装 SpringTools 插件
在 Eclipse 中安装 SpringTools 插件
63 0
|
5月前
|
XML Java 应用服务中间件
Eclipse插件下载地址汇总
Eclipse插件下载地址汇总
46 0
|
6月前
|
存储 Android开发
Eclipse安装Flowable Eclipse Designer插件实现图形建模BPMN 2.0流程图
Eclipse安装Flowable Eclipse Designer插件实现图形建模BPMN 2.0流程图
169 0
|
6月前
|
IDE Java Apache
Eclipse 安装了 Groovy 开发插件之后,双击打不开 .java 文件了
Eclipse 安装了 Groovy 开发插件之后,双击打不开 .java 文件了
44 0
|
7月前
|
数据采集 IDE Java