Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Steps for importing source code(Importing old project files)
Steps for importing source code [message #1697301] Wed, 03 June 2015 04:55 Go to next message
Jayaprakash Pillai is currently offline Jayaprakash PillaiFriend
Messages: 1
Registered: June 2015
Junior Member
Hi all,
Kindly let me know the proecedure for importing source code into a new java project using eclipse luna.

Our source folder contains libraries (jar files) and java files without project file and classpath

Thanks and Regards
JP
Re: Steps for importing source code [message #1697440 is a reply to message #1697301] Thu, 04 June 2015 01:25 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/02/2015 11:54 PM, Jayaprakash Pillai wrote:
> Hi all,
> Kindly let me know the proecedure for importing source code into a new
> java project using eclipse luna.
>
> Our source folder contains libraries (jar files) and java files without
> project file and classpath
>
> Thanks and Regards
> JP

I'm not completely clear on what you're trying to accomplish. Let me
take a stab...

1. Create a new project. You're not going to import anything because you
don't already have an Eclipse project. An Eclipse project, as you seem
to be aware, typically has .project, .classpath files and a .settings
folder.

2. Create packages for the code you want to use under the src subdirectory.

3. Copy the source code files you already have down into the bottom of
the appropriate package subdirectory structures in the filesystem.

4. Copy your JARs to a subdirectory named lib in the root of your project.

5. Right-click the project root and choose Refresh.

6. Right-click the project root and choose Build Path -> Libraries.

7. Click Add JARs... and browse to that new lib folder, then add the
JARs you want.

There are many different ways to do this, some better than this one, but
this is one of them and, I think, the easiest though it's not how I
would do it.

Hope this helps. Please push back if you meant something else and we'll
do a better job.
Previous Topic:Eclipse and jboss : The home directory does not exist or is missing a required file or folder: bin/t
Next Topic:Exchange method bracket problem
Goto Forum:
  


Current Time: Fri Apr 26 04:56:33 GMT 2024

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

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

Back to the top