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

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

SBOMs are essential to circumventing software supply chain attacks, and they provide visibility into various software components.

Related

  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 3: Understanding Janus
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 2: Understanding Neo4j
  • Introducing Graph Concepts in Java With Eclipse JNoSQL
  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3

Trending

  • Streamlining DevOps: How Containers and Kubernetes Deliver
  • A Complete Guide to Modern AI Developer Tools
  • Vibe Coding: Conversational Software Development — Part 1 Introduction
  • Beyond Java Streams: Exploring Alternative Functional Programming Approaches in Java
  1. DZone
  2. Coding
  3. Frameworks
  4. Exporting and Importing Projects in Eclipse

Exporting and Importing Projects in Eclipse

By 
Erich Styger user avatar
Erich Styger
·
May. 10, 22 · Tutorial
Likes (8)
Comment
Save
Tweet
Share
147.2K Views

Join the DZone community and get the full member experience.

Join For Free

I admit that I have (a few? or not so few) bad habits: one of them is that usually, I find a way to do things, and if that works, I stick with it. I know that there are other ways to do things, but hey, why bother? and sometimes a good friend asks an excellent question (are there any bad questions?), and this lets me review the way I’m doing things. and here is such a thing: exporting and importing projects in eclipse.

Archive Files With Drag & Drop

Here is how I usually move or copy a project to another machine:

  1. Find the project place on my hard disk. an easy way is to select the project folder and use the context menu with  show in windows explorer 
  2. Zip that projects into an archive file
  3. Delete from that archive file any derived resources (see  dissection of mcu10 projects  ), as well as remove all the version control information.
  4. Copy the archive file into the destination workspace and unzip it there
  5. Then drag&drop that folder into eclipse: this will import that project into the workspace. Instead of the folder I simply can drag&drop as well the  .project  file

note: best if i drag&drop the project into the ‘codewarrior projects’ view. this will  not  work if i drop it into the processor expert ‘project panel’ view.

well, that works, and I really get used to that process. so why bother? because there is actually a better way: to export and import.

The Export and Import Way

1. Select one or more project and use the ‘export’ context menu or file > export. Here select general > archive file:

export project as archive file

export project as archive file

2. In the ext dialog, you can deselect files and folder. additionally, you need to specify the archive file. You could use  filter types (e.g. to include *.c and *.h).

 I really wish that this dialog would consider the ‘derived’ flags for files and folder, so I could deselect them easier.

archive file settings

archive file settings

3. In the destination workspace, use the menu  file > import :

import dialog to import a project

import dialog to import a project

and here is the stumbling point:  Do  not  (!) select ‘archive file’, but ‘   existing projects into workspace   ‘.  I have exported it as archive file, but importing an archive file is importing an archive file  inside a project  , not (!)  as a project  . This is a usability quirk in eclipse.:-(

4. In the next dialog, you can choose the archive file and make adjustments which project you want to import. Note that it will automatically copy the projects into my workspace.

import archive projects

import archive projects

5. Click finish, and the projects get imported.

Summary

I'm using combinations of both ways: the archive file produced by the export is not different from an archive file I create with my  winzip  archive utility (or any other tool like this one). for both export ways, I need to manually remove what I do not want in the archive file. I wish there would be better support for this. but for importing projects the import functionality is really good, as it avoids the copy/extract/drag&drop way: I can go through two dialogs, and that’s it.

happy export-import :-)

ps: thanks to mark ruthenbeck having me considering more the export/import way!

Archive file Eclipse

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

Opinions expressed by DZone contributors are their own.

Related

  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 3: Understanding Janus
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 2: Understanding Neo4j
  • Introducing Graph Concepts in Java With Eclipse JNoSQL
  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3

Partner Resources

×

Comments

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: