Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Create new Java project from existing sources?
Create new Java project from existing sources? [message #755923] Thu, 10 November 2011 08:38 Go to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Assume I have a (simplified) directory tree with java sources like

<somepath>\
<somepath>\src\aaa\bbb\myclass1.java
<somepath>\src\aaa\bbb\myclass2.java
<somepath>\src\ddd\ccc\myclass3.java
<somepath>\inputsample.dat

This java project is currently NOT an Eclipse project.
So I cannot simply import it with menu File->import...

How else can I make a complete Eclipse project out of it?

That means I want to let Eclipse automatically scan the base folder beginning
with <somepath> and add all included files and create all necessary packages.

How can I do this otherwise?

Ben
Re: Create new Java project from existing sources? [message #755949 is a reply to message #755923] Thu, 10 November 2011 09:52 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 10.11.2011 09:38, Ben wrote:
> Assume I have a (simplified) directory tree with java sources like
>
> <somepath>\
> <somepath>\src\aaa\bbb\myclass1.java
> <somepath>\src\aaa\bbb\myclass2.java
> <somepath>\src\ddd\ccc\myclass3.java
> <somepath>\inputsample.dat
>
> This java project is currently NOT an Eclipse project.
> So I cannot simply import it with menu File->import...
>
> How else can I make a complete Eclipse project out of it?
You can either create the Java project and then import (means copy) from
<somepath> into it or you you create a Java project that points to that
location by disabling 'Use default location'. Once you've done that you
might have to update the Java build path of the project to make sure
that 'src' is on the build path as source folder.

Dani
>
> That means I want to let Eclipse automatically scan the base folder
> beginning
> with <somepath> and add all included files and create all necessary
> packages.
>
> How can I do this otherwise?
>
> Ben
Previous Topic:Eclipse won't find packages
Next Topic:JSP taglib autocompletition
Goto Forum:
  


Current Time: Sat Apr 27 01:40:38 GMT 2024

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

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

Back to the top