Learning Patterns Your Source for Quality Technology Courseware

Introduction to Spring 4 and Hibernate 4: Lab Setup Instructions (Standard Setup: Windows OS)

Below are the standard requirements for this course. If you have any questions or issues, please contact us.

Important Note: Student lab files are required on each computer used for the course. The links for these are not in this lab setup, and you should receive them separately.

Other notes:

  • It’s a good idea to keep downloaded software install files on the machines during the class in case of problems that require a re-install.
  • Cloning a setup is generally not a problem. If it is, we’ll mention it in the software section (for example, much of the IBM/RAD-WAS software can be problematic in this regard).

Hardware and classroom setup.

Each student and the instructor shall have a workstation that fulfills the listed requirements.

  • Required: Intel-compatible processor (with reasonably recent hardware).
  • Memory: 8GB recommended (4GB minimum)
  • Disk Space: Free disk space for software installs (generally minimum 2GB)
  • Operating System: Windows OS (Any modern version - Windows 7, 10, etc. - labs have not been tested on Windows 8 variants)
  • Recommended: Internet access
  • Recommended: Class machines networked together - allows students to access a shared network directory.

Lab Files: Each student and instructor must have lab files installed (links to these files are generally sent separately via e-mail).

  • Extract the lab files to a location conveniently accessible to the student (e.g. C:\ )
  • If using folder other than C:\, make sure that students know where they are.

Other instructor requirements for the classroom

  • Projector or large screen TV capable of 1280x800 or higher resolution. Instructor must be able to use this to project slides.
  • Whiteboard (preferred) or flip charts with markers.

Install Java Development Kit – JDK 1.8 Update 221

  • Note that any relatively recent JDK1.8 version is fine.

  • From http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html download the installer file for your OS
    • Windows 64 bit: xxx-windows-x64.exe (Almost certainly this is the one you want. 32-bit Windows OS installs are now rare).
    • Windows 32 bit: xxx-windows-i586.exe

  • Run the installer and take all defaults.

  • Create or modify environment variables as appropriate for your OS. This will add an environment variable JAVA_HOME, and modify your path to include the jdk bin folder
    • JAVA_HOME:
      • Right click My Computer and choose Properties > click the Advanced tab > click the Environment Variables button
      • In the bottom half of the dialog, click New to add a new System variable
      • Variable name: JAVA_HOME (this is case-sensitive)
      • Variable value: C:\Program Files\Java\jdk1.8.0_221 (or adjust to the actual path where you installed the JDK and your JDK version – please double-check this path – probably best to copy and paste it)
      • Click OK
    • Path:
      • Find this existing entry in the bottom half of the Environment Variables button, and click Edit
      • Click in the Variable value field and move your cursor all the way to the left (pressing Home on your keyboard should do this quickly for you)
      • Check whether the value below is already present, or add it at the beginning if necessary (make sure you get all of this, including the trailing semicolon, with no spaces):

      • %JAVA_HOME%\bin;

    • Click OK repeatedly (likely in 3 different dialogs) until all the dialogs close.

  • Open a terminal prompt type the below, and press Enter

    javac -version

    You should get a message that tells you the version. If the command is not found, you did something wrong.

  • Close the terminal prompt. You’re done installing Java

Install Eclipse Oxygen

(Version 4.7.3a or similar)

  • Download: From http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/oxygen3a, download the installer file for your OS

    NOTE: Look for the Download Links section in the page. Do NOT use the big Download button.
    NOTE: Make sure the bitness (e.g. 64 bit) matches the bitness of your JDK. Mixing them will fail.

    • Windows 64 bit: xxx-windows-x64.exe
    • Windows 32 bit: xxx-win32-x86_64.zip

  • Extract:

    • Windows: Unzip the file - Can extract to C:\, or other location convenient to student (as long as they know it, and can access it)

  • Test
    • Execute the program (double click on the eclipse.exe executable, or a shortcut for it)
    • Accept the default workspace, and let it load
    • Quit Eclipse

  • That’s it. You’re done installing Eclipse