调试类文件修改时,自动加载部署java类

想必大家对项目开发中,调试类文件修改时,容器自动重新加载漫长的过程早已厌倦,现在我们是实现怎么自动加载部署java类吧!
首先下载一个javaRebel  (jRebel)这个东西(注意:jrebel.jar3.0的暂时试不成功,可以下载jrebel2.1a_cracked.zip),解压后把jrebel.jar放在任何一个目录下比如:D:/JAVA/deskLib/jrebel.jar;
然后打开Eclipse ->window –>perferences ->java



点编辑



在Default VM Arguments中输入-noverify -javaagent:D:/JAVA/deskLib/jrebel.jar
注(-javaagent:+jrebel.jar放的路径)
然后点完成就可以了。
启动jboss,出现
Wed Mar 17 11:06:06 CST 2010 com.zeroturnaround.javarebel.hD#new V( false )
Wed Mar 17 11:06:06 CST 2010 com.zeroturnaround.javarebel.bH#public boolean a(byte abyte0[])

#############################################################

JRebel 2.0 (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 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.

证明已经安装完毕.

原文地址:http://winnerlxh.iteye.com/blog/772977

猜你喜欢

转载自blueblaze.iteye.com/blog/1744173