Thursday, September 11, 2014

how to spring-framework-3.1.0. and eclipse indigo


  • PLATFORM

*windows 7 family edition 64-bit

*download Java Platform, Standard Edition
Java SE 7u3
jdk-7u3-windows-i586.exe
www.oracle.com

*download Java EE 6 Development Kit Bundles without JDK
Java EE 6 SDK Update 4
java_ee_sdk-6u4-windows-ml.exe
www.oracle.com

*download tomcat 7.0.26 (32-bit edition)
apache-tomcat-7.0.26-windows-x86.zip
http://tomcat.apache.org

*download Eclipse IDE for Java EE Developers
eclipse indigo package 32 bit
eclipse-jee-indigo-SR2-win32.zip
http://www.eclipse.org

*download Spring Framework 3.1.0.RELEASE
spring-framework-3.1.0.RELEASE-with-docs.zip
http://www.springsource.org/download


Because of the problems linked to whether 64-bit or 32-bit software should be used,even though I use 64-bit I prefer 32-bit software so that I don't risk having compatibility issues

@there are two types of containers in spring: applicationcontext and beanfactory.
applicationcontext is used in this example

@ create a new project eg "tester"
Eclipse-New-Java Project

@righ click on file "tester"
java build path-libraries-add external jars

@add all files in "spring-framework-3.1.0.RELEASE\dist"
@add file "spring-framework-3.1.0.RELEASE\projects\spring-build\lib\ivy\commons-logging.jar"

@create a new package
com.edu4java.spring.tutorial3

@create new java class Hello.java

@create Main.java class that uses Hello.java

@create context.xml  by using this pdf file "spring-framework-3.1.0.RELEASE\docs\spring-framework-reference\pdf\spring-framework-reference.pdf"

References:
http://www.youtube.com/watch?v=ZwMwfGNrRtE&feature=related

No comments:

Post a Comment