Skip to main content



      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 03:38 Go to next message
Eclipse UserFriend
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 04:52 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 21:51:12 EDT 2025

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

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

Back to the top