Using JRebel (previously called JavaRebel) with WOLips

Last modified by Markus Ruggiero on 2017/02/20 21:13

JRebel is a tool from ZeroTurnaround that makes it possible for Java developers to instantly see any code change made to an app without redeploying. JRebel lets you see code changes instantly, versioning classes and resources individually and updating one at a time instead of as a lump application redeploy.

Also take a look at: Using DCEVM and Hotswap for rapid turnaround

How to install and use JRebel

AddZeroTurnAround.png

  • Download the Jrebel Eclipse Integration and perhaps the JRebel Eclipse Debugger Integration from install new Software

InstallSoftware.png

  • Make sure you have checked the JRebel Plugin in WOLips if you download the newest version.

UpdateWOLipsWithJRebel.png

  • Restart Eclipse. You will now have a Jrebel preference item in your eclipse preferences and JRebel is ready for use with your projects.

You have now installed and setup the stuff that WOLips needs to know about the location of JRebel.jar.

How do you use it?

Well that has become very simple since the inclusion of Quinton Dolan's JRebel plugin in WOLips.

For a project in which want to use jrebel to change java code while running, go to the run configuration of the project, under the contextual menu Run As->Run Configurations.

In the Run Configuration of a WOApplication you will notice an extra Tab, called JRebel.

Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging.

EnableJRebel.png

Start you project from the Run Configuration.

Suddenly, you will get messages about jrebel being loaded, and some extra information about what settings are available as extra arguments.

Information

If you get out of memory error with respect to "Perm Gen space", just allocate more Perm Gen memory in command line launch args in your launch configuration. For example:

-XX:MaxPermSize=384m

Start changing your java code on the fly: watch and start saving time.

JRebelWOlipsLog.png

  • Profit! (for the europeans: Extra Time Off!)

More information

Old screencast from David Avendasora about using JRebel with Eclipse 3.4.