No executable code found, intellijexecutable

Source: Internet
Author: User

No executable code found, intellijexecutable

Scenario Description: ant project + IntelliJ Idea to copy the compiled class file to the WEB-INF/classes directory, breakpoint has been unavailable

 

 

The IntelliJ community does not have a clear answer when I check a lot of information on the Internet.

 

Cause: IntelliJ does not think that the class file in the WEB-INF/classes is compiled and generated, so the breakpoint is unavailable.

 

Solution: declare the directory after the class file is compiled.

 

Solution:

 

Click project, press F4,

 

 

 

Switch to the Paths column. Compiler output selects the first item by default. If the first item is selected, make will compile the class into the dist directory of the project (depending on the ant configuration file build. xml settings ),

 

 

We select the second project and compile the class into the project \ WEB-INF \ classess

 

In this way, the web server can be started to use breakpoints in IntelliJ. In addition, in IntelliJ, the Code breakpoint must go through make.

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.