zoukankan      html  css  js  c++  java
  • eclipse使用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. .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的值表示当前的需要热部署的工程路径)]

    (2)、【在服务器的启动文件或者环境变量设置文件中配置。 这里拿weblogic 为例:

       在weblogic目录下 user_projectsdomainsase_domainin(根据自己的配置路径)下,找到setDomainEnv.cmd

       在开头处添加一行: set JAVA_OPTIONS=%JAVA_OPTIONS% “-noverify -javaagent:E:DOCSjavajava_libjrebel.jar”】

    如果你要支持更多的框架,可以参考官网 http://www.zeroturnaround.com/jrebel/features/frameworks/

    如果你要了解更多的参数配置,可以参考官网 http://www.zeroturnaround.com/jrebel/configuration/

    三、安装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

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

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

    配置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://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】

  • 相关阅读:
    (二)扩展原理:【2】BeanDefinitionRegistryPostProcessor
    寒假学习日报3
    寒假学习日报6
    寒假学习日报8
    寒假学习日报9
    寒假学习日报7
    寒假学习日报1
    寒假学习日报4
    构建之法阅读笔记1
    寒假学习日报2
  • 原文地址:https://www.cnblogs.com/tlll/p/3881449.html
Copyright © 2011-2022 走看看