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_23bin;%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.

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.

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

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.

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.