Environment Setup in Java

Hello friends how are you today in this blog i am going to tell you how you can set up an environment to run a java program.
  • There are two step to setup the environment in Java
  • Window 7
  • Step 1: Copy the JDK Path
  • Go to C Drive
    click on Program Files(x86)/Program Files
    click on java
    click on jdk
    click on bin
    Now copy the url,It looks like this
    C:\Program Files (x86)\Java\jdk1.8.0_45\bin
  • Step 2: Setup the environment variable
  • 1.From desktop, right click on Computer icon.
    2.Choose Properties
    3.Click the Advanced system settings
    4.Click Environment Variables
    5.In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
    6.Now in next window there are two section Variable Name and Variable Value now in Variable Name put PATH and in Variable Value paste the copied URL in the Step 1 and add semicolon in the last then click ok.
    Now open command prompt window and run java code.
  • Window 10
  • Step 1: Copy the JDK Path
  • Go to C Drive
    click on Program Files(x86)/Program Files
    click on java
    click on jdk
    click on bin
    Now copy the url,It looks like this
    C:\Program Files (x86)\Java\jdk1.8.0_45\bin
    or
    C:\Program Files (x86)\Java\jdk1.8.0_45
  • Step 2: Setup the environment variable
  • 1.In Search, type control panel and open it.
    2.Choose System
    3.Click the Advanced system settings
    4.Click Environment Variables
    5.In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
    6.Now in next window there are two section Variable Name and Variable Value now in Variable Name put PATH and in Variable Value paste the copied URL in the Step 1 then click ok.
    Now open command prompt window and run java code.

  • Request:-If you found this post helpful then let me know by your comment and share it with your friend. 
    If you want to ask a question or want to suggest then type your question or suggestion in comment box so that we could do something new for you all. 

    If you have not subscribed my website then please subscribe my website. 

    Try to learn something new and teach something new to other. 
  • Thanks.😊

Post a Comment

0 Comments