Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to import existing Java files
How to import existing Java files [message #654351] Tue, 15 February 2011 10:55 Go to next message
longbody  is currently offline longbody Friend
Messages: 2
Registered: February 2011
Junior Member
Hi folks,

I apologise if this is a trivial question, but can someone tell me how to import existing .java files into Eclipse ?

I am using Eclipse Helios on Ubuntu 10.10. In previous versions of Eclipse, when I created a project, I got a question inviting me to create a new project, or create a project from existing source files. This option appears to be missing from Helios.

I thank you in advance for any help you can give me on this.

Cheers,

Phil
Re: How to import existing Java files [message #654370 is a reply to message #654351] Tue, 15 February 2011 13:26 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.02.15 3:56, longbody wrote:
> Hi folks,
>
> I apologise if this is a trivial question, but can someone tell me how
> to import existing .java files into Eclipse ?
>
> I am using Eclipse Helios on Ubuntu 10.10. In previous versions of
> Eclipse, when I created a project, I got a question inviting me to
> create a new project, or create a project from existing source files.
> This option appears to be missing from Helios.
>
> I thank you in advance for any help you can give me on this.
>
> Cheers,
>
> Phil

No, it's not missing; it's on both the Java (uncheck "Use default
location") and Dynamic Web Project (uncheck "Use default") wizards' very
first dialog page.
Re: How to import existing Java files [message #654473 is a reply to message #654370] Tue, 15 February 2011 22:47 Go to previous messageGo to next message
longbody  is currently offline longbody Friend
Messages: 2
Registered: February 2011
Junior Member
Hi Russell,

Thanks for your response.

I've tried that approach, but all I get is an error message:

/home/phil/ProjectName overlaps the location of another project: 'ProjectName'

and the project does not get created.

Can you suggest what I'm doing wrong here ?

Cheers,

Phil
Re: How to import existing Java files [message #654478 is a reply to message #654473] Tue, 15 February 2011 22:59 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 15-Feb-11 15:47, longbody wrote:
> Hi Russell,
>
> Thanks for your response.
>
> I've tried that approach, but all I get is an error message:
>
> /home/phil/ProjectName overlaps the location of another project:
> 'ProjectName'
>
> and the project does not get created.
>
> Can you suggest what I'm doing wrong here ?
>
> Cheers,
>
> Phil

If you've previously created a project using those files and didn't
instruct Eclipse to copy them into your workspace (via Import for
example), then there may be bonafide Eclipse project artifacts in the
subdirectory. Or, there could be artifacts of a defunct Eclipse project.

I would think that you should know your filesystem more intimately than
I can guess at what's going on. Has Eclipse ever been used, etc.

You might try recreating the basic Java project elsewhere or strip the
existing one of Eclipse artifacts. Then create a new project using that
source code.

As a last resort, along the line of what I just said, just create a new,
empty project and create each class one by one copying the source code.
By the time you've accomplished that, one or more solutions to your mess
may occur to you anyway.

I'm guessing, however, there's some contamination by existing artifacts.
Previous Topic:incremental java compiler concepts
Next Topic:Shared Eclipse installation on Windows XP-SP3
Goto Forum:
  


Current Time: Fri Apr 26 10:27:28 GMT 2024

Powered by FUDForum. Page generated in 0.07907 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top