Like this article? We recommend
Running the Spring Application
Because we're building just a simple application, we don't have to worry about deploying the application to Tomcat or to an application server. This simplifies the process of running the code!
Installing Ant
Be sure to download and install a copy of Ant:
- Download the Ant distribution.
- Install and add Ant to the DOS path.
After these steps, just type ant at a DOS command prompt to verify that your installation is correct.
Downloading and Installing the Spring Framework Distribution
Because Spring is a Java framework, the installation consists of very few steps:
- Download the distribution and the following file.
spring-framework-2.5.4-with-dependencies.zip
- Unzip the file and add spring-core.jar to the CLASSPATH.
- Add these two Spring JAR files to the CLASSPATH:
C:\java\spring\spring-framework-2.5.4\dist\spring.jar commons-logging.jar
Once you've done the above, you're ready to build and run the example application.