|
Re: How to import existing Java files [message #654370 is a reply to message #654351] |
Tue, 15 February 2011 13:26 |
|
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 #654478 is a reply to message #654473] |
Tue, 15 February 2011 22:59 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.07907 seconds