`
winnerlxh
  • 浏览: 89794 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

调试类文件修改时,自动加载部署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://www.blogjava.net/beansoft/archive/2009/10/22/299303.html
  • 大小: 17.7 KB
  • 大小: 28.5 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics