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

From version 29.1
edited by Johan Henselmans
on 2010/02/12 09:08
Change comment: There is no comment for this version
To version 36.1
edited by bogo
on 2011/11/07 12:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.johanhenselmans
1 +XWiki.bogo
Content
... ... @@ -1,36 +1,55 @@
1 -JRebel (previously called javarebel is a tool from [[ZeroTurnaround>>http://www.zeroturnaround.com]]).
1 +[[JRebel>>http://jrebel.com]] is a tool from [[ZeroTurnaround>>http://www.zeroturnaround.com]] 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.
2 2  
3 -It is a java library that makes it possible to change java code while running a project in WOLips and see the results without having to restart. It is a great timesaver.
3 +=== How to install and use JRebel ===
4 4  
5 -If you are running Eclipse 3.4, you should have a look at the screencast from David Avendasora at [[http://www.wocommunity.org/podcasts/WOJavaRebel_Setup.mov]].
5 +* Get a free 30-day license, a[[open source developer license>>http://sales.zeroturnaround.com]] (Get JRebel for free section) or a paid license from [[ZeroTurnaround>>http://www.zeroturnaround.com]]
6 +* Put the license file (jrebel.lic) into a directory named .jrebel in your home directory. ( /.jrebel/jrebel.lic )
7 +* Get the JRebel plugin. Go to Eclipse->Preferences->Available Software Sites, add [[http://www.zeroturnaround.com/update-site/]]
6 6  
7 -If you are running WOLips 3.5.1 or bigger, you are lucky: the JRebel plugin is included in the current WOLips for there versions.
9 +[[image:AddZeroTurnAround.png]]
8 8  
9 -How to install and use JRebel
11 +* Download the Jrebel Eclipse Integration and perhaps the JRebel Eclipse Debugger Integration from install new Software
10 10  
11 -1. Download you version from [[ZeroTurnaround>>http://www.zeroturnaround.com]]
12 -1. put the jrebel.jar somewhere nice, so you can use it in whatever project you are working
13 -1. Go to WOLips->Preferences->Install Software, add http:~/~/www.zeroturnaround.com/update-site/
14 -1. Download the Jrebel Eclipse Integration and perhaps the JRebel Eclipse Debugger Integration from install new Software,
15 -1. Make sure you have checked the JRebel Plugin in WOLips if you download the newest version.
16 -1. Goto to preferences->JRebel, and point the Path to jrebel.jar to the jrebel.jar location from action 2.
13 +[[image:InstallSoftware.png]]
17 17  
15 +* Make sure you have checked the JRebel Plugin in WOLips if you download the newest version.
16 +
17 +[[image:UpdateWOLipsWithJRebel.png]]
18 +
19 +* Restart Eclipse. You will now have a Jrebel preference item in your eclipse preferences and JRebel is ready for use with your projects.
20 +
18 18  You have now installed and setup the stuff that WOLips needs to know about the location of JRebel.jar.
19 19  
20 -How do you use it?
23 +== How do you use it? ==
21 21  
22 22  Well that has become very simple since the inclusion of Quinton Dolan's JRebel plugin in WOLips.
23 23  
24 -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.
27 +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.
25 25  
26 26  In the Run Configuration of a WOApplication you will notice an extra Tab, called JRebel.
27 27  
28 -Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging.
31 +Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging.
29 29  
30 -Start you project from the Run Configuration.
33 +[[image:EnableJRebel.png]]
31 31  
32 -Suddenly, you will get messages about jrebel being loaded, and some extra information about what settings are available as extra arguments.
35 +Start you project from the Run Configuration.
33 33  
34 -Start changing your java code on the fly: watch and start saving time.
37 +Suddenly, you will get messages about jrebel being loaded, and some extra information about what settings are available as extra arguments.
35 35  
36 -Profit! (for the europeans: Extra Time Off!)
39 +{{info}}
40 +
41 +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:
42 +
43 +\-XX:MaxPermSize=384m
44 +
45 +{{/info}}
46 +
47 +Start changing your java code on the fly: watch and start saving time.
48 +
49 +[[image:JRebelWOLipsLog.png]]
50 +
51 +* Profit (for the europeans: Extra Time Off)
52 +
53 +== More information ==
54 +
55 +[[Old screencast from David Avendasora about using JRebel with Eclipse 3.4>>http://www.wocommunity.org/podcasts/WOJavaRebel_Setup.mov]].