Automatic generation and display of class files in the Web-inf directory in the Javaweb project

Source: Internet
Author: User

Question one: Is the class byte file in the Web-inf directory automatically generated, or is it necessary to manually create the relevant directory and then copy the bytes into it?


Allows eclipse to automatically generate

SOURCE folder: The root directory where the. Java source files are stored

Output Folder:.class The root directory of the compiled outputs
Pure Java project, the "src" is generally set to the source folder, and the bin is set to output folder

In Web project, "src" is generally set to source folder, and web-inf/classes is set to output

Setup steps:

Right-click Project name-->properties-->java build path-->source-->output folder--> project name/web-inf/classes


Note: Here by default there is no classes directory, we need to manually create, set up and click Apply, then you can let eclipse automatically generated


Question two: After the above steps have been set up, you can see the Classes folder in the folder, but in the left tree view of Eclipse, this folder cannot be displayed, how can I make it appear?


The project view on the left side is Project Explorerby default, but the classes directory is not visible, but the Navigator view is the one that can see the classes directory.

Setup steps:

Window-->show View-->navigator



This article is from the "Zifangsky" blog, make sure to keep this source http://983836259.blog.51cto.com/7311475/1685017

Automatic generation and display of class files in the Web-inf directory in the Javaweb project

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.