Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:24:59+00:00 2026-05-16T20:24:59+00:00

I have an Eclipse project. It originally had a structure something like this: MyProj

  • 0

I have an Eclipse project. It originally had a structure something like this:

MyProj
   src
      myproj
          bar.java
          baz.java
          foo.java
          [etc.]

Earlier, I thought I wouldn’t need baz.java anymore, so I deleted it from the project, which also deleted it from disk. Thankfully, subversion remembered the old version, because it turns out I DO need it, so now I’ve gotten it back into the source directory, but I can’t seem to figure out how to add it back into the project.

I tried File -> Import, but that seems to only want to import directories.

I tried File -> New -> Java Class, but that creates a new, empty file.

I suppose I COULD copy my file off elsewhere, File -> New, then copy/paste it in, but I’d love to learn the CORRECT Eclipse way to add an existing file to my project.

Thanks!

[Edit: I’m on a Mac, 10.6.Latest, Eclipse Helois 20100617-1415, though I don’t think it matters.]

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:24:59+00:00Added an answer on May 16, 2026 at 8:24 pm

    You should be able to just put them in the correct dir under your project(I think you stated SVN already replaced the file in the proper location), and hit File->refresh in Eclipse.

    Edit: that wasn’t working for me, I’m on a mac but I assume drag on drop should work platform independent and it was working for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created initial import of my eclipse project to local file like this:
I have this webnoir webapp as an Eclipse project. You can download it here:
I suddenly have an error in my Android eclipse project. This is after a
I have a Java project in Eclipse with ascii characters in it (◊ ,
here is the structure of my project. proj ---src ----main ----java ----Main.java ----resources ----res.txt
If I have a Java project in Eclipse, I can right-click on a method
I have an Eclipse project, which has two source folders - 'src', and 'test'.
Here is my scenario: I have an Eclipse project in my desktop in a
I have an Eclipse plugin project that has several file resources that I would
Eclipse project, I have Subversion set to ignore the bin directory, and also within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.