Add Java source code files/folders that are not part of the project in eclipse

Source: Internet
Author: User

Sometimes it is to look at the source code of a particular software, but this code is not open source. Perhaps for some development convenience, the software opens up some Java source code as a reference, but the other parts are encapsulated so that they cannot see the full project. This way, if a file of a file to see, can not compile, and related library functions, the call between the class can not jump to find.

So, the first thing to think about is to create a new project, to copy the file code one by one. However, if it is a very large project, the document is particularly much, it is particularly troublesome.

By chance, I found that directly to the source code folder directly into their own new project in the source folder, you can automatically add it, so that you save a file of a file a new process, very convenient.

The specific steps are:

1. New Project

2. Unfold the project and see src This source folder

3. Drag the source code folder directly into SRC

So it's done.

Add Java source code files/folders that are not part of the project in eclipse

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.