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 18, 2015  
  15. 2015-03-18 23:27:35 JRebel:  Valid until: April 1, 2015  
  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. 三月 18, 2015 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. 三月 18, 2015 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. 三月 18, 2015 11:27:36 下午 org.apache.coyote.AbstractProtocol init  
  36. 信息: Initializing ProtocolHandler ["http-bio-8080"]  
  37. 三月 18, 2015 11:27:36 下午 org.apache.coyote.AbstractProtocol init  
  38. 信息: Initializing ProtocolHandler ["ajp-bio-8009"]  
  39. 三月 18, 2015 11:27:36 下午 org.apache.catalina.startup.Catalina load  
  40. 信息: Initialization processed in 1057 ms  
  41. 三月 18, 2015 11:27:36 下午 org.apache.catalina.core.StandardService startInternal  
  42. 信息: Starting service Catalina  
  43. 三月 18, 2015 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. 三月 18, 2015 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. 三月 18, 2015 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. 三月 18, 2015 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. 三月 18, 2015 11:27:58 下午 org.apache.coyote.AbstractProtocol start  
  72. 信息: Starting ProtocolHandler ["http-bio-8080"]  
  73. 三月 18, 2015 11:27:58 下午 org.apache.coyote.AbstractProtocol start  
  74. 信息: Starting ProtocolHandler ["ajp-bio-8009"]  
  75. 三月 18, 2015 11:27:58 下午 org.apache.catalina.startup.Catalina start  
  76. 信息: Server startup in 21843 ms  
时间: 2024-09-09 17:42:22

eclipse使用jrebel的相关文章

eclipse插件JRebel的好处

本人做Java Web开发4年了,对Java的"慢"深有感触,和PHP没法比啊. php修改代码之后,立刻生效,无需重启服务器; 而java,修改java文件之后,就得重新部署或者重新启动tomcat. 我一直主要使用eclipse进行java web开发,在编写代码过程中,不管你改了一个字符还是一个方法,甚至整个类,tomcat也会重启.改一点就得重启一次,真心觉得效率太低了,时间都浪费在tomcat重启了. 大家说的热部署或者重新发布实际上也相当于tomcat重启了,因为同样是把所

IDEA 设置jrebel监控目录

IDEA 设置jrebel监控目录 上面不是预期的. 如何解决呢? 编辑rebel.xml 修改为: <classpath> <dir name="D:/software/eclipse/workspace2/convention/src/main/webapp/WEB-INF/classes"> </dir> </classpath> 问题解决ok

IDEA 如何使用JRebel 部署web项目呢?

IDEA 如何使用JRebel 部署web项目呢? 步骤 (1)安装JRebel插件 File|Settings...  输入JRebel进行搜索,然后安装. 注意:安装完JRebel插件之后需要重启IDEA.   (2)配置tomcat Run|  依次点开Defaults-Tomcat Server-Local,进入Local Tomcat(Tomcat模板)的设置界面    点击Configure,设置Tomcat路径,并单击OK保存     修改"Update" 动作和tomc

使用 Eclipse 优化工具 Optimizer for Eclipse

Optimizer for Eclipse 介绍 官网: http://zeroturnaround.com/free/optimizer-for-eclipse/ 顾名思义,Optimizer for Eclipse 这个插件主要是解决 Eclipse 性能优化问题: 1.低内存分配 较低的最小堆大小不断将导致 JVM 分配额外的内存.当你没有足够的内存,垃圾收集频繁的 JVM 会减慢你的体验. 2.慢类验证 类在 Eclipse 执行验证类和插件类显著减慢 JVM 的启动. 3.大索引和历史

IDEA 如何使用JRebel 部署web项目

IDEA 如何使用JRebel 部署web项目呢? 步骤 (1)安装JRebel插件 File|Settings...  输入JRebel进行搜索,然后安装. 注意:安装完JRebel插件之后需要重启IDEA.   (2)配置tomcat Run|  依次点开Defaults-Tomcat Server-Local,进入Local Tomcat(Tomcat模板)的设置界面    点击Configure,设置Tomcat路径,并单击OK保存     修改"Update" 动作和tomc

详解Eclipse Galileo中的快速Java编码

问题 无论您的项目或团队的规模有多大,在编辑代码库时,都会遇到如下的两 个问题: 代码模板 尽管代码模板是提高工作效率的一个理想途径,但需要确 保不能用模板来替代真正的重用,即编写方法或函数以便将它们用于许多位置.如果您有 一大段代码,那么最好在使用代码模板前先考虑采用带有变量的各种方法. 缺乏 一致性 - 当团队中的很多人编辑文件时,难免会有编码上的些许差异,但这些差 异会使代码变得难于读懂和维护.这种情况下,很难搜索到代码差异在何处发生.即便代 码是您一个人写的,如果您忘记了前面代码是如何编

eclipse 不太常用的快捷键

eclipse 不太常用的快捷键 (1)查找调用其的地方 Ctrl+Shift+G 类似于IDEA 的"Find usages" (2)查看类的继承关系 光标放在类名 Ctrl+T (3)批量导入import Ctrl+Shift+O (4)重命名 Ctrl+1(数字1) (5)在当前编辑器中搜索 Ctrl+F 参考:eclipse 常用快捷键最佳实践

eclipse汉化还原-eclipse汉化后想还原怎么办

问题描述 eclipse汉化后想还原怎么办 按照网上的方法,桌面创建快捷方式,然后如图可是当我点确定或者应用的时候是这样的求指导 解决方案 d:...eclipse.exe ""-nl en""这样写 解决方案二: exe后面空一格再加参数,所有参数都放在引号中 解决方案三: exe和 -nl之间要加个空格吧.. 解决方案四: 唉,why you try. 解决方案五: 不行全部删除,从网上再下载一个eclipse 解决方案六: 先把汉化的插件删了 再把安装目录中的

eclipse中svn1.10.9插件设置Ignored Resources中.project等无效

问题描述 eclipse中svn1.10.9插件设置Ignored Resources中.project等无效 Myeclipse中svn1.10.9插件设置Ignored Resources中.project等不起作用下面是myeclipse配置的图片: 解决方案 重启也不可用,是插件本身问题 解决方案二: 你重启了吗?重启下试试