现在的位置: 首页 > 综合 > 正文

jrebel 5 for myEclipse (8-10 测试过)配置

2013年08月06日 ⁄ 综合 ⁄ 共 2607字 ⁄ 字号 评论关闭

1、到http://zeroturnaround.com/software/jrebel/download/下载jrebel5.0,解压到指定目录。

2、http://download.csdn.net/detail/yydcj/4433623下载破解的jrebel.jar,替换原来的jrebel.jar破解jrebel。

3、http://download.csdn.net/detail/yydcj/4433626下载jrebel for myeclipse插件。在myEclipse根目录新建myplugin目录,在其中再建jrebel目录。将jrebel for myeclipse插件压缩包中的features、plugins解压到jrebel目录下。在MyEclipse
Blue Edition 8.5目录dropins文件夹下新建txt文件,txt文件中输入内容

    path=D:\\Genuitec\\myplugin\\jrebel(jrebel for myeclipse插件绝对路径),

然后保存并重命名为jrebel.link。重启myeclipse,Window->Preferences下查看是否有JRebel插件,有则说明JRebel插件安装成功。

4、myeclipse中配置jrebel。先Window->Preferences下选中JRebel,通过点击“Browse”选中jrebel.jar来指定jrebel.jar路径。然后填写重部署的估计时间。

window->preference->tomcat->Tomcat 6.x->JDK页,在Optional Java VM arguments下,加入以下参数
-noverify
-javaagent:D:\Program Files\jrebel\jrebel.jar 这里自行修改jrebel.jar正确的路径

5、生成jrebel.xml。右键工程,选择JRebel->Generate rebel.xml ...,然后选择保存路径,

查看保存的rebel.xml格式如下:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.comhttp://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

 <classpath>
  <dir name="E:/xxxx/WebRoot/WEB-INF/classes">
  </dir>
 </classpath>

 <web>
  <link target="/">
   <dir name="E:/xxxx/WebRoot">
   </dir>
  </link>
 </web>

</application>

6、现在可以Myeclipse下启动tomcat了。刚启动时会打印如下信息,则表示破解成功。

[2012-07-17 11:22:57] #############################################################
[2012-07-17 11:22:57] 
[2012-07-17 11:22:57]  JRebel 5.0.0 (201206080930)
[2012-07-17 11:22:57]  (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[2012-07-17 11:22:57] 
[2012-07-17 11:22:57]  Over the last 1 days JRebel prevented 
[2012-07-17 11:22:57]  at least 0 redeploys/restarts saving you about 0 hours.
[2012-07-17 11:22:57] 
[2012-07-17 11:22:57]  This product is licensed to Unlimited
[2012-07-17 11:22:57]  For FUN! Unlimited! Enjoy!
[2012-07-17 11:22:57] 
[2012-07-17 11:22:57]  The following plugins are disabled at the moment: 
[2012-07-17 11:22:57]  * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)
[2012-07-17 11:22:57]  * Click plugin (set -Drebel.click_plugin=true to enable)
[2012-07-17 11:22:57]  * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
[2012-07-17 11:22:57]  * Jersey plugin (set -Drebel.jersey_plugin=true to enable)
[2012-07-17 11:22:57]  * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)
[2012-07-17 11:22:57]  * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)
[2012-07-17 11:22:57]  * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)
[2012-07-17 11:22:57]  * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)
[2012-07-17 11:22:57] 
[2012-07-17 11:22:57] #############################################################

抱歉!评论已关闭.