Add a java source code file/folder that does not belong to the project in eclipse, eclipsejava

Source: Internet
Author: User

Add a java source code file/folder that does not belong to the project in eclipse, eclipsejava

Sometimes it is to view the source code of a software, but this code is not open source. Some java source code may be provided as a reference for some convenience of development, but other parts are encapsulated and cannot be viewed completely. In this way, if a file is viewed as a file, it cannot be compiled, and the related library functions cannot jump to the search for calls between classes.

So the first thing that comes to mind is creating a project and copying the file code one by one. However, if it is a large project with many files, it will be especially troublesome.

By accident, I found that the source code folder is directly dragged into the source folder of the new project, and the folder can be automatically added, saving the process of creating a file and a file, very convenient.

The specific steps are as follows:

1. Create a project

2. Expand the project and see src source folder

3. Drag the source code folder directly into the src

This is done.

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.