注:以下都是网上收集整理的,可能不全,仅限于学习和研究使用。 JavaRebel是一个工具,主要是用于热加载,比如说在Tomcat之类的应用服务器中,更新了class或者某些资源文件,使用了JRebel之后,就不需要重新启动应用服务器。这里有一点先声明一下,本文只是破解仅限于学习和研究使用,勿用于其他用途。 下载地址:http://www./jrebel/download/ 下载下来的是一个Zip压缩包,打开之后会发现一个jrebel.jar,这就是其最重要的运行包了。其他都是一些文档和插件。 PS. rebel出了免费社区版,参见: http:///blog/free-version-of-jrebel-social/ 一、安装包准备1. Jrebel.jar 核心JAR包,http:///jrebel/prev-releases/ 上面进行下载。 安装 JRebel Eclipse插件进入 Help ? Install New Software... 并且输入下面的URL :http://www./update-site/ 2. update-site.zip jrebel Eclipse插件http://www./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的值表示当前的需要热部署的工程路径)] (2)、【在服务器的启动文件或者环境变量设置文件中配置。 这里拿weblogic 为例: 在weblogic目录下 user_projects/domains/base_domain/bin(根据自己的配置路径)下,找到setDomainEnv.cmd 在开头处添加一行: set JAVA_OPTIONS=%JAVA_OPTIONS% “-noverify -javaagent:E:/DOCS/java/java_lib/jrebel.jar”】 如果你要支持更多的框架,可以参考官网http://www./jrebel/features/frameworks/ 如果你要了解更多的参数配置,可以参考官网http://www./jrebel/configuration/ 三、安装Eclipse插件安装JRebel Eclipse 插件 Help ? Install New Software 然后通过 如下 URL :http://www./update-site/ 如果要离线下载的话,可以通过下载离线包的方式进行:http://www./update-site/update-site.zip /************************************************** jrebel 下载: 官网地址:http://www./jrebel/ (试用30天) 破解地址:http://dl./c086engzbb **************************************************/ ----------------------------------------------------------------- 配置jrebel: 1.重启完毕后,开始设置 JRebel参数,进入 Eclipse后选择 Window——> Performance。 2.在左侧选择 JRebel,然后点击 Browser…按钮选择你的 jRebel.jar存放路径。 3.在左侧选择 Java— Debug— Step Filtering,然后勾选 Use Step Filters和 Filter synthetic methods (requiresVM support)。 点击 Add Filter 按钮添加 add com.zeroturnaround.* 和 org.zeroturnaround.*。 ------------------------------------------------------------------- 四、配置完上面后,还需要关闭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:///software/jrebel/learn/eclipse-jrebel-tutorial/】 【https:///software/jrebel/download/installing-jrebel-plugin-for-eclipse/】 【http://manuals./jrebel/】 有更加好的破解 【http://blog.csdn.net/sensisoft/article/details/20010615】 破解jrebel方法 【http://www.blogjava.net/usherlight/archive/2009/10/15/298449.html】 【http://www./2014/02/jrebel_6430.html】 |
|
来自: feimishiwo > 《java》