Presumably everyone to the project development, debugging class file modification, the container automatically reload long process has been tired, I have nothing to do today, so, want to try Javarebel (JRebel) This thing, Javarebel (JRebel) is now charging software, But on the Internet can be downloaded to the correct version of. Check the relevant information on the Internet, you can implement the modification of class files, without the container reload function, happy to try to compete, first downloaded MyEclipse7.0 (including eclipse) installation, want to try a new environment Javarebel (JRebel), MyEclipse7.0 installation use successfully completed, in the installation trial Javarebel (JRebel), is a lot of effort (master here laughed), so, do this record, want to use Javarebel (JRebel), in the installation of people encounter problems, Can play a reference role.
From the information found on the Internet, mentioned two installation methods, one is the Eclipse plug-in way, one is directly set tomcat JVM parameters of the way, originally wanted to use the first way to intuitive, the result, updated from the official web plug-in, according to the officially provided installation method (how to Install and use JRebel in Tomcat, JBoss or Jetty with the Eclipse IDE http://www.zeroturnaround.com/blog/how-to-install-a nd-use-jrebel-formerly-javarebel-in-tomcat-with-the-eclipse-ide/), to the 4th step, just can't point out that set of dialog box, looking for a while did not find, do not know what is going on. Hope that the success of the installation can be a master can be detailed to say how to do.
No resistance, but also choose a second method to install, the second method of installation is relatively simple, but, when setting JVM parameters, but also pay attention to some details, the specific method is (here to Tomcat6 for example) : Window-preferences-servers-tomcat-tomcat 6.x-jdk-optional Java VM Arguments in this box, enter the parameters of the Java VM, which are set as follows:
Java Code-noverify-javaagent:f:/jrebel-3.0-m1/jrebel.jar-drebel.dirs=f:\myeclipse7.0m1\eclipse\workspace\ Qhtjproject_new\webroot\web-inf\classes
-noverify
-javaagent:f:/jrebel-3.0-m1/jrebel.jar
-drebel.dirs=f:\myeclipse7.0m1\eclipse\workspace\ Qhtjproject_new\webroot\web-inf\classes
Individual parameter Description:
-javaagent: This is the path you use for the Javarebel (JRebel) jar package, note the slash direction.
-drebel.dirs= This is the class file path for the project you want to monitor (note: If the path has spaces that need to be enclosed in double quotes)
After the setup is complete, OK, return. Down to the Tomcat <Context reloadable= "false" .../> reloadable= "false". This will be set to false. At this point, even if the configuration is complete, starting Tomcat will see input information about Javarebel (JRebel) in the console:
Java code Mon Oct 17:46:15 CST 2009 Com.zeroturnaround.javarebel.hd#new V (False) Mon Oct 17:46:15 CST 2009 Com.zeroturnaround.javarebel.bh#public Boolean A (byte abyte0[]) ############################ ################################# JRebel 3.0-m1 (200910151623) (c) Copyright Zeroturnaround, Ltd., 2007-2009. All rights reserved. A Rough estimate:over The last 1 days jrebel prevented the need For in least 0 redeploys/restarts. Using industry standard build and redeploy times, JRebel Saved you between 0 and 0 hours. This product is licensed to Java Hack organization For unlimited number of developer seats on site. ################################################### ##########
Mon Oct 17:46:15 CST 2009 Com.zeroturnaround.javarebel.hd#new V (false)
Mon Oct 17:46:15 CST 2009 Com.zeroturna Round.javarebel.bh#public boolean A (byte abyte0[])
########################################################## ###
JRebel 3.0-m1 (200910151623)
(c) Copyright Zeroturnaround, Ltd., 2007-2009. All rights reserved.
A Rough Estimate:over The last 1 days JRebel
prevented the need for at least 0 redeploys/restarts.
Using industry standard builds and redeploy times,
JRebel saved you between 0 and 0 hours.
This product is licensed to Java Hack Organization for unlimited number of
developer on site.
#############################################################
OK, this means that the configuration succeeded, down, you can try to modify the Java class file, there is no container automatic loading of the long process. Go and try it ....