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. 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的值表示當前的需要熱部署的工程路徑)]

 

(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.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】

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM