How does Eclipse import file system-like projects directly into the project?

Source: Internet
Author: User

When importing, select a project that already exists, and if you choose a file system, you may be prompted that no items can be imported.
At this point, you can copy a. project file from another Eclipse project and modify the project name in the source file.
You can also copy a. classpath file if you need to.
. project file Structure
<projectdescription><name>soundrecorder</name><comment></comment><projects ></projects></projectDescription>




. classpath File Structure
<?xml version= "1.0" encoding= "UTF-8"? ><classpath><classpathentry kind= "src" path= "src"/>< Classpathentry kind= "src" path= "gen"/><classpathentry kind= "con" path= "com.android.ide.eclipse.adt.ANDROID_ FRAMEWORK "/><classpathentry kind=" con "path=" Com.android.ide.eclipse.adt.LIBRARIES "/><classpathentry kind= "Output" path= "Bin/classes"/></classpath>





It is important to note that
1. If you want to import Android project, then source. classpath files, preferably Android, otherwise imported items,
Either "Android Engineering" or the lack of an Android library is not a good solution.
2. It is best to copy a. classpath file before importing it.
If it is imported first, then copy, there is likely to be a problem.
You can restart eclipse at this time, but it's not necessary to close the project and then reopen it.
Because. Classpath is with the project, and the project is only part of the work space.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How does Eclipse import file system-like projects directly into the project?

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.