Environment Setup for Spring Framework 4.0

This tutorial will guide you on how to prepare a development environment to start your work with Spring Framework 4. This tutorial will also teach you how to setup JDK, Tomcat and Eclipse on your machine before you setup Spring Framework 4:

Step 1 - Setup Java Development Kit (JDK):
Download latest java (JDK ) version from oracle's java site.
Set to the class path for this JDK version in case Window OS.
set PATH=C:\jdk1.6.0_23\bin;%PATH%
set JAVA_HOME=C:\jdk1.6.0_23
Alternatively, on Windows NT/2000/XP, you could also right-click on My Computer, select Properties, then Advanced, then Environment Variables. Then, you would update the PATH value and press the OK button.

Environment Setup for Spring Framework 4.0

On Unix (Solaris, Linux, etc.), if the SDK is installed in /usr/local/jdk1.6.0_23 and you use the C shell, you would put the following into your .cshrc file.
setenv PATH /usr/local/jdk1.6.0_23/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.6.0_23

Step 2 - Install Apache Common Logging API:
You can download the latest version of Apache Commons Logging API from http://commons.apache.org/logging/.

Setup for Spring Framework 4.0

Step 3 - Setup SpringSource Tool Suite (STS) IDE
To install SpringSource Tool Suite (STS)IDE, download the latest SpringSource Tool binaries from http://www.springsource.org/springsource-tool-suite-download . Once you downloaded the installation, unpack the binary distribution into a convenient location.

After a successful startup, if everything is fine then it should display following result:

spring 4 setup in eclipse

Step 4 - Setup Spring Framework 4.0 Libraries

1. Spring 4.0 Maven Dependency
Spring 4.0 RC1 is released and final version is to be released in the month of December 2013. If you want to get the Release Candidate 1, use the following maven dependency to download the files.
        <name>Spring Milestones</name>

2. Download Spring 4.0 Library Files
If you are looking to download the JAR files required to run the Spring 4.0 examples, please download it from here:

(22-Novmber-2013)Spring 4.0 RC1 Distribution Download.

Spring 4 libs

Set your CLASSPATH variable on this directory properly otherwise you will face problem while running your application. If you are using Eclipse then it is not required to set CLASSPATH because all the setting will be done through Eclipse.

Spring 4 setup

<<Previous <<   || Index ||   >>Next >>

No comments:

Post a Comment