Get Knowledge from Video instead of Content:

Monday, 9 January 2017

JMeter - Installation of JDK on Windows

Easy step to Install JDK on Windows for Apache JMeter:

1. Un-Install Older Version(s) of JDK/JRE: If you have previously installed the older version(s) of JDK/JRE, un-install them by following below steps:

  • Goto "Control Panel"
  • Click "Program and Features" ⇒ 
  • Un-install ALL programs begin with "Java", such as "Java SE Development Kit ...", "Java SE Runtime ...", and etc.

2. Download JDK:

  • Goto Java SE download site
  • Under "Java Platform, Standard Edition" ⇒ "Java SE 8u{xx}", where {xx} is the latest update number ⇒ Click the "JDK Download" button.
  • Check "Accept License Agreement".
  • Choose your operating platform, e.g., "Windows x64" (for 64-bit Windows OS) or "Windows x86" (for 32-bit Windows OS). You can check whether your Windows OS is 32-bit or 64-bit via "Control Panel" ⇒ "System" ⇒ Under "System Type".

3. Install JDK and JRE:
  • Run the downloaded installer (e.g., "jdk-8u{xx}-windows-x64.exe"), which installs both the JDK and JRE. By default, the JDK will be installed in directory "C:\Program Files\Java\jdk1.8.0_xx", where xx denotes the latest upgrade number; and JRE in "C:\Program Files\Java\jre1.8.0_xx".
  • Check the JDK installed directory by inspecting these folders using File Explorer. Take note of your JDK installed directory, which you will need in the next step.

4. Include JDK's "bin" Directory in the PATH: 
Windows OS searches the current directory and the directories listed in the PATH environment variable for executable programs. JDK's programs (such as Java compiler javac.exe and Java runtime java.exe) reside in directory "<JAVA_HOME>\bin" (where <JAVA_HOME> denotes the JDK installed directory). You need to include "<JAVA_HOME>\bin" in the PATH to run the JDK programs.
To edit the PATH environment variable in Windows XP/Vista/7/8/10, please follow below steps:

  • Launch "Control Panel" ⇒ "System" ⇒ Click "Advanced system settings".
  • Switch to "Advanced" tab ⇒ "Environment Variables".
  • Under "System Variables", scroll down to select "Path" ⇒ "Edit...".
  • For Windows 10: You see a table listing the existing PATH entries. Click "New" ⇒ Enter the JDK's binary directory "c:\Program Files\Java\jdk1.8.0_xx\bin" (Replace xx with your installation's upgrade number!!!) ⇒ Select "Move Up" to move it all the way to the top.
  • Prior to Windows 10: In "Variable value" field, INSERT "c:\Program Files\Java\jdk1.8.0_xx\bin" (Replace xx with your installation upgrade number!!!) IN FRONT of all the existing directories, followed by a semi-colon (;) which separates the JDK's binary directory from the rest of the existing directories. DO NOT DELETE any existing entries; otherwise, some existing applications may not run.

5.Verify the JDK Installation: 
  • Click "Start" button
  • Click "Run"
  • Enter "cmd"
  • Type "path" command and enter
  • Contents of the PATH environment variable must dispaly your <JAVA_HOME>\bin is listed in the PATH
  • Type the following commands to verify that JDK/JRE are properly installed and display their version
               C:\>java -version
               C:\>javac -version

No comments :

Post a Comment