Friday 8 December 2017

How to install Jrebel in Hybris on Ubuntu


*  JRebel tracks Java application development by skipping build and redeploy in the development process. 










 *  Search for version 6.4.4 and download it and extract in a folder.

Step 2:-

Add Jrebel path to the environment

 * Open console run this command
    sudo -H gedit /etc/environment.


Set Path like this

JREBEL_HOME="/home/jrebel"

Step 3:-

Add these properties to the local.properties or project.properties.


#####################  JRebel  ######################
tomcat.javaoptions=-Xverify:none -javaagent:"%JREBEL_HOME%/jrebel.jar=de.hybris.tomcat.HybrisWebappClassLoader60"
##################### JRebel_debug ###################
tomcat.debugjavaoptions=-Xverify:none -javaagent:"%JREBEL_HOME%/jrebel.jar=de.hybris.tomcat.HybrisWebappClassLoader60" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
tomcat.generaloptions=-Xmx4096M -XX:MaxPermSize=1024M -ea
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=${tomcat.jmx.port}
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dorg.tanukisoftware.wrapper.WrapperManager.mbean=true
-Djava.endorsed.dirs="%CATALINA_HOME%/lib/endorsed"
-Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA_HOME%
-Dfile.encoding=UTF-8
-Dlog4j.configuration=log4j_init_tomcat.properties
-Djava.util.logging.config.file=jdk_logging.properties
-Djava.io.tmpdir="${HYBRIS_TEMP_DIR}"


Step 4:-

Go to eclipse marketplace ------>search for Jrebel-----> install




* Restart the eclipse.


Step 5:-

To get the Activation code you need to login in-----> https://my.jrebel.com
(through facebook )

* Copy the Activation code after login.


Step 6:-

For license activation

go to eclipse --->help---->jrebel--->Activation----->Click on I have a licence----> Paste the Activation code here.






*  Click on Activate rebel.

Step 7:-

             Open the terminal set path to the platform


Example :

 export JREBEL_HOME=/home/Softwares/jrebel


Step 8:-

*  Do ant clean all
* Start the server . ./hybrisserver.sh debug.


If the above Process Not work Do like this

Step 1:-


          Add the below properties to the local.proprties or project.properties


tomcat.debugjavaoptions=-agentpath:"%JREBEL_HOME%/lib/libjrebel64.so" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n


Step 2:-
              Open the terminal from platform folder 
    Do ant deploy
     ant clean all
    . ./hybrisserver.sh debug


        If Jrebel installed You will see in the console.


=========================== ALL THE BEST ======================



No comments:

Post a Comment