JRebel安装和使用

安装JRebel 

1. IntelljJ EDEA 14

 1). Installation(安装)

Installing the JRebel plugin

Open File > Settings. Select Plugins.

Press Browse Repositories.

Find JRebel. Press Install plugin.

Next → Activation


如果不工作:

The plugin can also be downloaded as a ZIP archive from http://plugins.jetbrains.com/plugin/?id=4441. Once downloaded, open Plugins and press Install plugin from disk. Browse to the downloaded file and follow the prompts.

如果安装OK:

If the installation was a success, your IDE will restart. After the restart, JRebel will alert you via a notification.

    如图:

    170847_qLtN_2322616.jpg


2). Activation(激活)

Getting a license

Open Help > JRebel Activation.

Fill out the form.

Press Activate JRebel.

Next → Server configuration


获取license

Press I already have a license in the activation window.

Activation code. Paste your activation code if you have one already.

License file from the hard drive. Point to your jrebel.lic file. You get this file via email when you purchase JRebel.

Connect to License Server. Enter your Group URL and email. You get the Group URL from your network administrator.


破解:

下载破解版本,http://pan.baidu.com/s/1mgKjrr6

替换安装的:C:\Users\用户\.IntelliJIdea12\config\plugins\jr-ide-idea\lib\jrebel\jrebel.jar

配置:jrebel config指定jrebel.lic

重启后查看显示已激活

            如图激活后:

        171012_BujP_2322616.jpg

        license:

        171108_256d_2322616.jpg

   3). Server configuration(服务配置)

   Enabling JRebel agent for your server

   Press the Run with JRebel button on the toolbar to run your application with JRebel enabled.

Next → Project configuration

                安装成功后菜单多了两个图标:

                171400_1xvi_2322616.jpg           

     

4). Project configuration(项目配置)

Mapping your workspace to the deployed application

Open View > Tool Windows > JRebel panel. The JRebel Modules window opens.

Select the projects or modules you wish to enable JRebel for.

Next, right-click your project node and select JRebel > rebel.xml. The rebel.xml file is generated for your project.

Redeploy your application!

Next → Completion

            如图右击项目菜单最下面如下:

            171229_Fbvm_2322616.jpg

            


启动项目:

To debug your application with JRebel, press the Debug with JRebel button instead.

How to start JRebel from a command line.

Configuring a remote server to work with JRebel.


运行成功时提示:

When successful, you will see the JRebel banner in the console right at server startup. This is what the JRebel banner should look like:

2015-07-30 11:23:20 JRebel:  #######################################################

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  JRebel Legacy Agent 6.2.2 (201507291221)

2015-07-30 11:23:20 JRebel:  (c) Copyright ZeroTurnaround AS, Estonia, Tartu.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  Over the last 1 days JRebel prevented

2015-07-30 11:23:20 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  Licensed to ZeroTurnaround.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  #######################################################

    如图:

    172458_J0C2_2322616.jpg

5). Completion(完成)

Building your project


IntelliJ IDEA does not compile classes by default. Use Build > Make Project command to compile classes and update your application.

And you’re done!


注意:

IntelliJ IDEA does not compile classes on save by default. Press Ctrl+Shift+F9 to compile the current file, module or package (you can also find this command via Build > Make Project).

Once you have generated rebel.xml, you need to redeploy your application to the server for the configuration to take effect.

没改变一次如图:

    172521_A2IK_2322616.jpg


2.Eclipse 4

1). Installation(安装)

Installing the JRebel plugin

Open Help > Eclipse Marketplace…

Search for JRebel. Found it? Press Install.

Next→ Activation

            

如果不工作:

Don’t worry, you can also install JRebel using:

Update site URL. Open Help > Install New Software and enter the URL for our update site: http://update.zeroturnaround.com/update-site. Follow the prompts to complete the installation.

Download ZIP. The Eclipse plugin update can also be downloaded as ZIP archive from http://update.zeroturnaround.com/update-site/update-site.zip. Once downloaded, open Help > Install New Software and press Add. Select Archive to point to the ZIP archive of the update site. Press OK to proceed.


安装成功:

If the installation was a success, your IDE will restart. After the restart, JRebel will alert you via a notification.

    安装如图:

    172714_vOZh_2322616.jpg

    

2). Activation(激活)

Getting a license

Open Help > JRebel Activation.

Fill out the form.

Press Activate JRebel.

Next → Server configuration


获取license:

Got a license?

Press I already have a license in the activation window.

Activation code. Paste your activation code if you have one already.

License file from the hard drive. Point to your jrebel.lic file. You get this file via email when you purchase JRebel.

Connect to License Server. Enter your Group URL and email. You get the Group URL from your network administrator.


破解:

下载破解版本,http://pan.baidu.com/s/1mgKjrr6

替换安装的:D:\eclipse\plugins\org.zeroturnaround.eclipse.embedder_6.2.2.RELEASE-201507291337\jrebel\jrebel.jar

配置:jrebel config指定jrebel.lic

重启后查看显示已激活

            如图:

                172732_ClXS_2322616.jpg

172802_5CPZ_2322616.jpg

3). Server configuration(服务配置)

Enabling JRebel agent for your server

Open Help > JRebel Configuration > Startup.

Select Run via IDE.

Select the check-box next to your server. Doing this will automatically run your server with the required JVM arguments.

Next → Project configuration

 

提示:

如果配置后IDE没成功运行选择Run using CLI 或者 Run on a remote server or VM 试试


运行成功提示:

When successful, you will see the JRebel banner in the console right at server startup. This is what the JRebel banner should look like:

2015-07-30 11:23:20 JRebel:  #######################################################

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  JRebel Legacy Agent 6.2.2 (201507291221)

2015-07-30 11:23:20 JRebel:  (c) Copyright ZeroTurnaround AS, Estonia, Tartu.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  Over the last 1 days JRebel prevented

2015-07-30 11:23:20 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  Licensed to ZeroTurnaround.

2015-07-30 11:23:20 JRebel:  

2015-07-30 11:23:20 JRebel:  #######################################################


4). Project configuration(项目配置)

Mapping your workspace to the deployed application

Open Help > JRebel Configuration > Projects.

Select the check-box next to your project. Doing this will generate a rebel.xml file and keep it up to date.

Redeploy your application!

Next → Completion

Didn't work?

Using Maven to manage your projects? Use the JRebel Maven plugin to generate rebel.xml automatically. JRebel Maven instructions.

Running Gradle? Use the JRebel Gradle plugin to generate rebel.xml automatically. JRebel Gradle instructions.

Need to further tweak your rebel.xml? JRebel rebel.xml reference manual has the answers.


5). Completion(完成)

Enabling automatic build

Open Project > enable Build Automatically.

And you’re done!

Why do this?

JRebel relies upon your IDE to do the compiling. Enabling Build Automatically ensures that your .java files are compiled to .class files. 


JRebel reloads your compiled .class files and not your .java files. When you change code, JRebel pushes the changed classes and resources to the server without redeploying.


参考官网:http://zeroturnaround.com/software/jrebel/quickstart/intellij/


转载于:https://my.oschina.net/fulin/blog/486502

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值