Changes for page Using JRebel (previously called JavaRebel) with WOLips
Last modified by Markus Ruggiero on 2017/02/20 21:13
From version 28.1
edited by Johan Henselmans
on 2010/02/12 09:19
on 2010/02/12 09:19
Change comment:
There is no comment for this version
To version 37.1
edited by bogo
on 2011/11/07 12:55
on 2011/11/07 12:55
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. johanhenselmans1 +XWiki.bogo - Content
-
... ... @@ -1,51 +1,53 @@ 1 -JRebel (previouslycalled javarebelis a tool from [[ZeroTurnaround>>http://www.zeroturnaround.com]]).1 +[[JRebel>>url:http://jrebel.com||shape="rect"]] is a tool from [[ZeroTurnaround>>url:http://www.zeroturnaround.com||shape="rect"]] 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 - Itisa java librarythatmakesit possibleto change java code whilerunningaproject inWOLips and seetheresultswithout 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>>url:http://sales.zeroturnaround.com||shape="rect"]] (Get JRebel for free section) or a paid license from [[ZeroTurnaround>>url:http://www.zeroturnaround.com||shape="rect"]] 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/>>url:http://www.zeroturnaround.com/update-site/||shape="rect"]] 6 6 7 - If you are runningWOLips 3.5.1 or bigger, you are lucky:he JRebel plugin is includedin thecurrent WOLips forthere versions.9 +[[image:attach:AddZeroTurnAround.png]] 8 8 9 - How toinstallanduse JRebel11 +* 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/ 13 +[[image:attach:InstallSoftware.png]] 14 14 15 - [[image:AddZeroTurnAround.png]]15 +* Make sure you have checked the JRebel Plugin in WOLips if you download the newest version. 16 16 17 - 1. Download theJrebel Eclipse Integration andperhapseJRebelEclipse Debugger Integration from install new Software17 +[[image:attach:UpdateWOLipsWithJRebel.png]] 18 18 19 -[[image:InstallSoftware.png]] 20 - 19 +* Restart Eclipse. You will now have a Jrebel preference item in your eclipse preferences and JRebel is ready for use with your projects. 21 21 22 - 1. Make sure you havechecked theJRebel PlugininWOLipsifyoudownloadthenewestversion.21 +You have now installed and setup the stuff that WOLips needs to know about the location of JRebel.jar. 23 23 24 - [[image:UpdateWOLipsWithJRebel.png]]23 +== How do you use it? == 25 25 26 -1. Restart Eclipse. You will now have a Jrebel preference item in your eclipse preferences 27 -1. Goto to Preferences->JRebel, and point the Path to jrebel.jar to the jrebel.jar location from action 2. 25 +Well that has become very simple since the inclusion of Quinton Dolan's JRebel plugin in WOLips. 28 28 29 - [[image:PathToJRebel.png]]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. 30 30 31 - Youhave nowinstalled andsetup the stuffthatWOLips needstoknowaboutthelocationofJRebel.jar.29 +In the Run Configuration of a WOApplication you will notice an extra Tab, called JRebel. 32 32 33 - Howdoyouuse it?31 +Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging. 34 34 35 - Well thathas become very simple since the inclusion of Quinton Dolan'sJRebelluginin WOLips.33 +[[image:attach:EnableJRebel.png]] 36 36 37 - Foraprojectin which want tosejrebel tochangejava codewhile running, go to the runconfigurationofthe project,underthecontextual menuRunAs->RunConfigurations.35 +Start you project from the Run Configuration. 38 38 39 - In the RunConfiguration ofaWOApplicationyou willnotice anextraTab, called JRebel.37 +Suddenly, you will get messages about jrebel being loaded, and some extra information about what settings are available as extra arguments. 40 40 41 -Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging. 39 +{{info}} 40 +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 42 43 -[[image:EnableJRebel.png]] 42 +-XX:MaxPermSize=384m 43 +{{/info}} 44 44 45 -Start you projectfromtheRunConfiguration.45 +Start changing your java code on the fly: watch and start saving time. 46 46 47 - Suddenly, you will getmessagesaboutjrebelbeing loaded, andsome extra information about what settings are available as extra arguments.47 +[[image:attach:JRebelWOLipsLog.png]] 48 48 49 - Startchanging yourjava code onthefly: watch andstart savingtime.49 +* Profit! (for the europeans: Extra Time Off!) 50 50 51 -Profit! (for the europeans: Extra Time Off!) 51 +== More information == 52 + 53 +[[Old screencast from David Avendasora about using JRebel with Eclipse 3.4>>url:http://www.wocommunity.org/podcasts/WOJavaRebel_Setup.mov||shape="rect"]].