[Jrebel] How to Use jrebel Eclipse/tomcat

Source: Internet
Author: User

For a web project, it takes a long time to restart the project after modifying the Java file.

I heard that jrebel can be automatically loaded.

I have read some articles on the Internet and also read jrebel's documents. I have never succeeded. Today I found another article. I tried it a little and succeeded. I hope it will be useful to you.

1. http://www.zeroturnaround.com/jrebel/current/ download jrebe (30 days trial, there are also a lot of online I am looking for a hacker)

2. Add the jrebel plug-in of eclipse

Help»Software Updates»
Available Software
»Add site

Use http://www.zeroturnaround.com/update-site/

Window»Preferences»
Jrebel

Java» debug» step filtering

Add filterButton addCom. zeroturnaround .*AndOrg. zeroturnaround .*.

Set Project> buildAutomatically

 

(Jrebel's document ends here, but I have not set it here)

You also need to set the following

Double-click the server. The configuration page of the published ate is displayed. Publishing ---> never publish automatically

Jreble intergration ---> enable jreble agent

Switch to the modules page

Set auto reload as Disabled

Note that I used to see on the Internet that all others said they wanted to select this never publish sutomatically. However, after I chose not to automatically release this machine, I could not re-load the JSP page after I modified the JSP page, after automatically publish when resources change is selected, jsp can be hot loaded as before.

 

Last step

Run --> run commands

Add (-path of jrebel. Jar downloaded by Java agent, path of the class file of-drebel. dirsc Project)

-Noverify
-Javaagent: G:/download/jrebel. Jar
-Drebel. dirs = F:/project/test/webcontent/WEB-INF/classes, F:/project/test/webcontent (other articles on the Internet do not say this configuration, are using generate rebel. XML. I don't know why I generate rebel on the local machine. XML does not work. The preceding two dirs paths are rebel. generated in XML). After all these configurations, JSP and class files can be hot loaded.

So far, the project should be able to automatically load classes when the Java file is modified. Some people may find that the modified class cannot display new things. Modify the IE option, just clear the IE cache.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.