Skip to main content

Installation of java & Set environment variables for java installation

We can divide this post in 3 parts:-
  • Java Installation
  • Setting up environment variables for java installation
  • Verify Java installation and newly set up environment variables are proper.


Java Installation:-

  1. Go to Java download page.
  2. Check whether your PC is 32 bit or 64 bit.  I’m running 64-bit version of windows 7.
  3. Click on Accept License Agreement radio button after reading License agreement.
Java Download page
Java Download page
4. For 32 bit Operating System [OS], click on jdk-8u77-windows-i586.exe and for 64 bit Operating System [OS], click on jdk-8u77-windows-x64.exe


5. Your download will start after clicking on link
download starts.png
Java downloading on local machine

6. I have already downloaded JDK [Java Development Kit] version - jdk-8u77.
.
JDK installable.png
Java Installable
7.   Now double click on your java installable. Follow with images below:-
JDK Installation step 1
JDK Installation step 1


JDK Installation step 2
JDK Installation step 2

            Please note the highlighted path, we would be using this path to set a environment variable.
          
JDK Installation step 3
JDK Installation step 3


JDK Installation step 4
JDK Installation step 4
                    JRE is getting installed.


JDK Installation step 5
JDK Installation step 5


JDK Installation step 6
JDK Installation step 6
Please note that - Both JRE & JDK got installed using same installable.
.


Setting up environment variables for java installation-

 We would be setting below two environment variables -
  • JAVA_HOME : C:\Program Files\Java\jdk1.8.0_25
  • PATH      : ;%JAVA_HOME%\bin;
Follow along the images to set environment variables.
1. Press Windows Key from Keyboard Windows key iocn
                          OR
               Click on Start icon
start icon
windows start icon
                                  


Way to set up environment variable
Way to set up environment variable 
2.  Right click on Computer.
3. Click on Properties
Way to set up environment variable
Way to set up environment variable
Way to set up environment variable
Way to set up environment variable
You can also open above window directly using [rundll32.exe sysdm.cpl,EditEnvironmentVariables] .

  • Open Run Prompt [Win key +R]
  • Type rundll32.exe sysdm.cpl,EditEnvironmentVariables
  • Hit Enter key


Way to set up environment variable
Way to set up environment variable 
Setting up JAVA_HOME
Setting up JAVA_HOME


Entry of JAVA_HOME
Entry of JAVA_HOME


Updating Path Variable
Updating Path Variable


Updating Path Variable
Updating Path Variable

There is a blogpost explaining the rationale behind all these environment variables.


Verify Java installation and newly set up environment variables are proper.



Open Command prompt [Press Win key + R]
Type cmd and hit enter.
Run Prompt
Run Prompt
Command Prompt will be open


Command Prompt
Command Prompt


Type java -version and hit enter.
Command prompt should display newly installed java version.
Verify Java Version in command prompt
Verify Java Version in command prompt




Comments

Popular posts from this blog

How to Open Browser in Incognito / InPrivate mode using Selenium / WebDriver

How to Open Chrome Browser in Incognito mode using Selenium / WebDriver ?          We will use Chrome Drivers Capabilities & ChromeOptions to open Chrome browser in incognito mode. To be precise, we have to use argument --incognito  for ChromeOption as shown in below example- How to Open Firefox Browser in Incognito / Private mode using Selenium / WebDriver ?     We will use Firefox Profile   to open Firefox in private mode. To be precise, we will set browser.private.browsing.autostart in firefox profile preference. How to Open Internet Explorer (IE) Browser in InPrivate mode using Selenium / WebDriver ?       We will use IE Driver Capabilities to open IE in InPrivate mode. To be precise we will use FORCE_CREATE_PROCESS capability along with IE_SWITCHES to which parameter would be -private This is all for now. Cheers!!

History Of Selenium WebDriver

I have assumed that you have already read my past blog entry, Introduction to Selenium WebDriver and here on the quest to find out technical answer of question - what selenium is? Before getting to the answer, I want you to go though the below info-graphics of history of Selenium WebDriver.  History of Selenium Now that you are aware of history, Can you answer what Selenium is? Selenium is set of tools which includes :- Selenium IDE Selenium RC WebDriver Selenium Grid So meaning of Selenium depends upon the context, c iting the man himself - Simon Stewart here - Unfortunately, the Selenium project uses a lot of jargon. Selenium Core is the heart of the original Selenium implementation, and is a set of Javascript scripts that control the browser. This is sometimes referred to as "Selenium" and sometimes as "Core". Selenium RC was the name given to the language bindings for Selenium Core, and is commonly, and confusingly, referred to as just "Selenium"