|Re: Steps for importing source code [message #1697440 is a reply to message #1697301]
||Thu, 04 June 2015 01:25
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
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
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
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.
Powered by FUDForum
. Page generated in 0.03044 seconds