DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Hadoop on AmpereOne Reference Architecture
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Bootstrapping a Java File System
  • Debug Like a Pro in 2025: 10 New Eclipse Java Debugger Features to Enhance Your Productivity (With Spring Boot Examples)

Trending

  • How to Submit a Post to DZone
  • The Documentation Crisis Nobody Sees: Why AI Agents Are Breaking Faster Than Humans Can Document Them
  • Amazon OpenSearch Vector Search Explained for RAG Systems
  • Stop Loading Everything into Redshift: A Spectrum + Iceberg Pattern for Hybrid Analytics
  1. DZone
  2. Coding
  3. Frameworks
  4. How to Add Existing Files to Eclipse Projects

How to Add Existing Files to Eclipse Projects

By 
Erich Styger user avatar
Erich Styger
·
Sep. 24, 14 · Interview
Likes (0)
Comment
Save
Tweet
Share
131.1K Views

Join the DZone community and get the full member experience.

Join For Free

this tip sounds very basic, but still: i get asked about this about once a week. so it must be something non-obvious in eclipse then ;-): how to add existing files to an eclipse project. as with many things in eclipse, there is not a single way to do something. there are two basic ways to do this:

  1. import
  2. drag & drop
  3. copy & paste

the first is the ‘official’ way in eclipse, the other two are much faster and easier :-).

1. import

to import one or multiple files, select the folder/project where i want to add the files, then use the menu file > import :

menu file import

menu file import

alternatively, i can use the context menu:

import context menu

import context menu

then use general > file system :

import from file system

import from file system

in the next dialog, i can browse for the files and select them to be added:

importing files from filesystem

importing files from filesystem

2. drag & drop

while the ‘import’ method is fine, i rarely use it: too many clicks! a easier way (at least under windows) is to drag & drop the files from the windows explorer:

drag and drop to add files

drag and drop to add files

3. copy & paste

the third way is even easier:

  1. select the files i want to add in the explorer/file manager, and copy them ( ctrl-c on windows)
  2. paste them in the project/folder in eclipse ( ctrl-v on windows)

that last method does not advanced options like if i want to link to the files, see “ link to files and folders in eclipse “, but is definitely the fastest and easiest way.

happy adding :-)

File system Eclipse

Published at DZone with permission of Erich Styger. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Hadoop on AmpereOne Reference Architecture
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Bootstrapping a Java File System
  • Debug Like a Pro in 2025: 10 New Eclipse Java Debugger Features to Enhance Your Productivity (With Spring Boot Examples)

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook