How to install Spring Framework in Eclipse Step1 ... - 101code.net

namibiancurrishInternet and Web Development

Nov 12, 2013 (3 years and 9 months ago)

74 views

How to install Spring
F
ramework in Eclipse

Step1
:

Download Spring Framework

http://www.springsource.org/download


Click the “Download” and save it to your pc, in my case, I save it to the folder
C:/Spring.

Step2
:


U
n
zip the

spring
-
framework
-
3.1.1.RELEASE

files

( you may have different version name)
, you sho
uld

see


Open the “dist” folder, you show see all the spring frameword .jar files ( in my case, there are 21 .jar files
) are under the “
dist” folder which we will add it later in to the project


Step3
:

Download Apache Commons logging jar file.

To make the Spring Framework work, you also need to download Apache Commons logging jar file.

http://commons.apache.org/codec/download_codec.cgi



Click the “Download” and save it to your pc, in my case, I save it to the folder C:/Spring.


Step4
:


U
n
zip the “
commons
-
logging
-
1.1.1
” files
(you

may have different version name)
, you

should see


The “commons
-
logging
-
1.1.1.jar” which we will add it later in to the project

After you download these 4 steps, now, we can
Install Spring Framework into the project

Step 5


( if you do not have eclipse installed, you can download from
http://www.eclipse.org/downloads/
, you
also can find the detail installation in the article “how to install eclipse IDE for java EE developers” )

Open your eclipse,
Go to
File

New

偲oject

Select Java Project

and
click “
N
ext”



Type the project name such as “SpringDemo” and click “Finish”


R
ight
click

SpringDemo


project,
open


Properties


, then select

Java Build Path



C
l
ick

Add Library



Click

Next

,

then, click

User Libraries


, then click

New


to add your library name, such as

spring



C
lick



ok


C
lick


add JARS

,
navigate your

spring
-
framework
-
3.1.1.RELEASE


fo
lder, select all jar files and add
them to




C
lick

ok


Then
select


spring


and

click “Add

JARs


to add the

commons
-
logging
-
1.1.1
.j
ar




Y
ou
show see the all jars has been added in your user library

spring



C
lick

ok


, click

Finish

, click

OK




N
ow
you have

add
ed

all the Spring Framework stuff

under your SpringDemo project
, you are ready to
go