Monday, October 13, 2008

Spring Framework: Getting Started

This is a quick introductory tutorial on getting started with Spring framework. It is intended for people setting-up the development environment with Spring framework installation and understanding the Spring distribution.

Introduction:

Please go through the quick start tutorial posted earlier to understand Spring framework and its architecture before getting started.

http://w-o-r-k-s-p-a-c-e.blogspot.com/2008/10/article-spring-framework-introduction.html

Installation of Spring framework comes up as a zip file distribution and the release information can be found under readme.txt file of the distribution. This tutorial covers the installation of Spring Framework 2.5.5 distribution that requires JDK 1.4.2 or later and J2EE 1.3. So we will use Sun JDK 1.5 with eclipse

Installation:

• Download the binary distribution from http://www.springframework.org/download
• The binary distribution of Spring framework consist of the following directory layout



• To install Spring framework, copy/extract the distribution files to a particular directory

Set Environmental Variables:

• Set JAVA_HOME environment variable to the directory where JDK is installed.
• Add Spring_Installation/dist/spring.jar to classpath.
• Add Spring_Installation/lib/jakarta-commons/commons-logging.jar to classpath.

No comments: