Setup for Introduction to Spring Batch
Required Software
- Hardware requirements:
- Required: Intel-compatible processor (with reasonably recent hardware).
- Memory: 8GB min recommended
- Disk Space: Free disk space for software installs (generally minimum 2GB)
- Operating System:
- Windows OS (Any modern version - e.g. Windows 10. - labs have not been tested on Windows 8 variants)
- Mac OS: Any relatively recent version - lab instructions are generally geared for Windows users, but Mac users should be able to adapt fairly easily. If shell scripts are provided for labs, they generally are provided in both Windows and *nix variants.
- Required: Zip utility. A good free one is 7-zip
- Required: Adobe Acrobat Reader
- Internet access
- Tomcat 8.5 (instructions below)
- Java Development Kit (instructions below)
- Eclipse Oxygen (instructions below)
Instructions
Lab Files:
- Extract the lab files to a location conveniently accessible (e.g. C:\ )
- Recommend using utility like 7-zip, not Windows built-in extractor.
- If using folder other than C:\, make sure to remember where it is.
Install Tomcat 8.5
- Download: From https://tomcat.apache.org/download-80.cgi go to the Binary distributions section for Tomcat 8.5 and download the zip file
- Go to the link with label zip: in the section labeled Core:
- The filename will be something like apache-tomcat-8.5.56.zip
- Save the file where you can access it easily
- Extract: Extract the zip file where you can run it easily.
- Windows OS: Common location is C:\
- Mac OS: Common location is user home directory.
- That’s all that needs to be done to install Tomcat.
Install Java Development Kit – JDK 1.8 Update 281
- 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
- Mac OS: xxx-macosx-x64.dmg
- Run the installer and take all defaults.
- Windows
- 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_281 (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.
- JAVA_HOME:
- 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
- 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
- Mac
- Run the installer and take all defaults.
- Create or modify environment variables. This will add an environment variable JAVA_HOME, and modify your path to include the jdk bin folder
- Done by modifying .bash_profile in the user’s home folder
- Open ~/.bash_profile for editing (Make a copy first - .bash_profile.ORIG)
- Insert the following lines into the file:
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
- Done by modifying .bash_profile in the user’s home folder
- 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)
- Windows
- Download: Try the below direct link for the 64 bit Windows version first. It should take you to a page with a big Download button - use it.
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/3a/eclipse-jee-oxygen-3a-win32-x86_64.zip - If the above works, you’re done with the download, and can continue with the Extract below
- If the above does not work, continue with these download instructions
- Go to http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/oxygen3a, and 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: Unzip the file - Can extract to C:\, or other covenient location.
- 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
- Download: Try the below direct link for the 64 bit Windows version first. It should take you to a page with a big Download button - use it.
- Mac
- 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.
- Mac OS: xxx-macosx-cocoa-x86_64.dmg
- Execute the installer
- Execute the installer, and install to Applications folder as usual
- Test
- Run the program (run from Applications folder unless you did a different kind of install)
- Accept the default workspace, and let it load
- Quit Eclipse
- Security alert Note: If you get an alert that you can’t open Eclipse because it’s from an unidentified developer, then dismiss the alert (OK), and do the following.
- Hold the Control key when you click on the icon for Eclipse
- Choose Open from the shortcut menu
- Click Open in the subsequent dialog window
- This will save the security exception and permit opening in the future.
- That’s it. You’re done installing Eclipse
- Download: From http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/oxygen3a, download the installer file for your OS
Courses and Class Files
This setup page is used for the following course: