Environment setup;
Here let’s have a look on how to setup environment on windows 7 and 10 operating system. We have mainly two steps to setup the java environment.
1. Window 7
Step 1: First, Copy the Path of JDK as below.
• Open C Drive
• Select Program Files(x86) or Program Files
• Select java folder.
• Select jdk
• Select bin
C drive>> program files>>java>>jdk>>bin
Now you have to copy the URL, which looks like below.
C:\Program Files(x86)\Java\jdk1.8.0_45\bin
Step 2: Environment variable setup.
- From desktop, you should right click on Computer icon.
- Then select Properties.
- Go to Advanced system settings.
- Then Click on Environment Variables
- Within the section System Variables, you have to select the PATH environment variable.
- Then click edit option. (If the PATH environment variable does not available then, click New.)
- In the next window there will be two section, Variable Name and Variable Value. now in Variable name section put PATH and in Variable Value section paste the copied URL in the Step 1.
- Add semicolon in the end then press ok.
- Now you are done. Open command prompt window and run the java code.
- These are the steps to setup java environment in windows 7.
2. Window 10
Step 1: First, Copy the Path of JDK as below.
Open C Drive
Select Program Files(x86) or Program Files
Select java folder.
Select jdk,
Select bin,
C drive>> program files>>java>>jdk>>bin
Now you have to copy the URL, which looks like below.
C:\Program Files(x86)\Java\jdk1.8.0_45\bin
Step 2: Setup the environment variable
- Go to search tab, and type control Pannel then open it.
- Now select System
- Select the advanced system settings
- Press on Environment Variables
- Within the section System Variables, you have to select the PATH environment variable.
- Then click edit option. (If the PATH environment variable does not available then, click New.)
- In the next window there will be two section, Variable Name and Variable Value. now in Variable name section put PATH and in Variable Value section paste the copied URL in the Step 1.
- Add semicolon in the end then press ok.
Now you are done. Open command prompt window and run the java code.
This is regarding how to setup environment for JAVA.
Visit- Environmental setup tutorial
For Videos Join Our Youtube Channel: Join Now
Thank you!