Apr 20th, 2012, 02:46 PM
Where can I find spring.jar and other jar files in Spring Framework 3.1.1?
I'm very new to spring framework and I am following the steps in this tutorial http://static.springsource.org/docs/...tep/part1.html. When I got to step 1.7, I can't find the jar files mentioned in the instructions. The article mentioned that the author was using Spring Framework 2.5. I have Spring Framework 3.1.1. Should the instructions be updated for the newer version of spring framework? Or should I look for those files in a different location?
1.7. Copy libraries to 'WEB-INF/lib'
First create a 'lib' directory in the 'war/WEB-INF' directory. Then, from the Spring distribution, copy spring.jar (from spring-framework-2.5/dist) and spring-webmvc.jar (from spring-framework-2.5/dist/modules) to the new 'war/WEB-INF/lib' directory. Also, copy commons-logging.jar (from spring-framework-2.5/lib/jakarta-commons) to the 'war/WEB-INF/lib' directory. These jars will be deployed to the server and they are also used during the build process.
Apr 20th, 2012, 09:10 PM
In the current Spring distributions, the JAR is called spring-core-<version>.jar. If you are creating a sample project, it will be better to copy all JARs from the Spring distribution to WEB-INF/lib as there are a number of inter-dependencies. For a real project, consider using Maven or Ivy for managing the dependencies instead of tracking them on your own.
Feb 3rd, 2013, 10:58 PM
miniaturepail, I am new to Spring too and I've spent an hour of googling for how to find Spring jars. The Get Started page of Spring Source says: get our Tool Kit, it's "everything you need". I thought libs are included there (just as you probably). But no, it's just a kit. What they did not say anywhere, that you also need a framework itself and it's not included in the kit! Link to framework download is very hard to find - it's at the right bottom (I wish it was on the Get Started page, just like the one for STS Kit).
Originally Posted by miniaturepail
I hope it helps someone... Thank you.
Feb 4th, 2013, 07:44 AM
Tags for this Thread