1. #1
    Unregistered

    How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    I want to run my java programs in my Windows PC and for that I need to set the environment variables to the specific path, How to do it? Can you tell me the procedure to do it?



  2. #2
    Support Array
    Join Date
    Apr 2012
    Posts
    1,574

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    Environment variables should be set initially to note the process to pick up the needed files from the mentioned destination and run from there accordingly. So as your need in Java you should set the environment variable to the jdk bin folder to run the programs and its simple to do it in Windows, just follow the steps given

    STEP 1: Right My Computer and Select Properties ( Select Advanced system setting if Windows 7 )

    STEP 2: Go to Advanced tab and select the button Environment variables.

    STEP 3: Now you will see two set of lists that is User variables for your user account and system variables. So if you need the environment variable to be visible only for your account then select the variable PATH from the list and double click it.

    STEP 4: Now if you see already some destination is set in the variable value field then simply press End key ( go to the end of line ) and type ; (semicolon) and paste the jdk file path (eg.C:\Program Files (x86)\Java\jdk1.6.0_01\bin) and press Ok.
    STEP 5: Repeat Step 3 & 4 if you want to set the environment variable as System variables.

    STEP 6: If the PATH entry is not found then simply click New button and give the Variable Name as PATH and Variable value as the destination (eg.C:\Program Files (x86)\Java\jdk1.6.0_01\bin)

    Now you can run your java programs without any problem.
    ~Support
    Community Manager

  3. #3
    wannapoints Array
    Join Date
    May 2012
    Location
    Patna
    Posts
    218

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    It is very important step to set the path for run the java program
    proper way. To set the path follow the following steps:-

    1. Start your System panel
    *Go to Start
    *then Settings
    *then Control Panel
    *and finally on System
    2. If you see Advanced or Environment, click those.
    3. There are two windows on this panel: System variables and User variables. Check whether you have a Set button or a New button.
    4. If you see a Set button:
    *Do not click the Set button.
    *Click on ANY item in the User variables list. The Variable and Value fields are then filled in with whatever item you clicked.
    *Replace the expression in the Variable field with the single word PATH.
    *Replace the expression in the Value field with the following
    %path%;c:\j2sdk1.4.1_01\bin
    Click both Set and Apply, in that order.
    Now replace the expression in the Variable field with the single word CLASSPATH.
    Replace the expression in the Value field with this:
    %classpath%;.
    Click both Set and Apply, in that order.
    Exit all windows and programs, especially any command prompt window. Try the java and javac commands again
    to see if they work now
    5. If you see a New button and not a Set button:
    *Click New.
    *In the Name field, type PATH.
    *In the Value field, type the following
    %path%;c:\j2sdk1.4.1_01\bin
    *Click OK to complete that variable.
    *Click in the User variables window.
    *Click New and create a variable named CLASSPATH with the following value:
    %classpath%;.
    *Click OK to complete that variable.
    *Exit all windows and programs, especially any command prompt window.
    Try the java and javac commands again to see if they work now. If they
    do not, restart your computer and try the java and javac commands again.
    I thing your Java Path will be configured.

  4. #4
    param3003 Array
    Join Date
    Jun 2012
    Posts
    61

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    Windows Vista and Windows 7 users
    1. From the Desktop, right-click My Computer and click Properties.
    2. Click Advanced System Settings link in the left column.
    3. In the System Properties window click the Environment Variables button.
    Windows 2000 and Windows XP users
    The path is now managed by Windows 2000 and Windows XP and not the autoexec.bat or autoexec.nt files as was done with earlier versions of Windows. To change the system environment variables, follow the below steps.
    1. From the Desktop, right-click My Computer and click Properties.
    2. In the System Properties window, click on the Advanced tab.
    3. In the Advanced section, click the Environment Variables button.
    4. Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.

      C:\Program Files;C:\Winnt;C:\Winnt\System32


    Hope this helps.

  5. #5
    Abhishek Chauhan Array
    Join Date
    May 2012
    Posts
    899

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    Hello,

    Follow these steps:


    Right-click on "My Computer" to select Properties.


    Click the "Advanced" tab.


    Click the "Environment Variable" button.

    Scroll down the "System variables" list to the "Path" variable.


    Double click on "Path"


    Press the "End" key


    Type (beginning with a semicolon separator) ;%systemroot%Microsoft.NET\Framework\v1.1.4322


    Click "OK"


    Click "OK" to close the System Properties window.

    Verify the change:



    Click

    Click Run... for a Run window.


    Type "cmd" in the Open: field.


    Click "OK"


    Type a command such as "csc"


    You are unsuccessful if you get back a response such as


    'csc' is not recognized as an internal or external command,

    operable program or batch file.

    Regards
    -Abhishek

  6. #6
    sandi.jkv Array
    Join Date
    Jun 2012
    Posts
    595

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    Follow these steps:

    1.Right-click on the MY COMPUTER,and then Click PROPERTIES.

    2.Click ADVANCED tab.

    3.Click ENVIRONMENT variables.

    4.Click on one of the following:


    -->Click NEW to add a new variable.

    -->Click an Existing variable,and then click EDIT to change its name or value.

    -->Click an Existing variable,and then click DELETE to remove it.




    ALL THE BEST!!!

  7. #7
    kumar12337 Array
    Join Date
    Sep 2012
    Location
    hyd
    Posts
    1,989

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    hi......dear friend...................


    1.jpgfirst click on the start menu and right click on the my compurter and select properties


    2.jpg then there is a window will be opened like that....then choose the advaced system settings from the left pane


    3.jpg then a window will be opened....in that choose the environment varibles from the bottom of that same window



    4.jpgand another window.....there you choose your settings ........as you like............THANK YOU

  8. #8
    merupu Array
    Join Date
    Aug 2012
    Posts
    269

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?

    Environment variables should be set initially to note the process to pick up the needed files from the mentioned destination and run from there accordingly. So as your need in Java you should set the environment variable to the jdk bin folder to run the programs and its simple to do it in Windows, just follow the steps given

    STEP 1: Right My Computer and Select Properties ( Select Advanced system setting if Windows 7 )

    STEP 2: Go to Advanced tab and select the button Environment variables.

    STEP 3: Now you will see two set of lists that is User variables for your user account and system variables. So if you need the environment variable to be visible only for your account then select the variable PATH from the list and double click it.

    STEP 4: Now if you see already some destination is set in the variable value field then simply press End key ( go to the end of line ) and type ; (semicolon) and paste the jdk file path (eg.C:\Program Files (x86)\Java\jdk1.6.0_01\bin) and press Ok.
    STEP 5: Repeat Step 3 & 4 if you want to set the environment variable as System variables.

    STEP 6: If the PATH entry is not found then simply click New button and give the Variable Name as PATH and Variable value as the destination (eg.C:\Program Files (x86)\Java\jdk1.6.0_01\bin)

    Now you can run your java programs without any problem.

  9. #9
    AJAY Array
    Join Date
    Oct 2012
    Location
    Ajmer Rajasthan
    Posts
    290

    Re: How to set Environment variables in my Windows PC? Can you tell me the procedure to do it?


    Dear Friend........

    If you want to know that how to set environment variable in my computer the whole procedure ..So you just see my some easy and steps and then try it your self.....
    Let's have a look.....


    First of all go and start your computer and then Right click on the My computer and then just select the properties option and click on it...After that click on the advanced tab and then click on the Environment Variables..Now here you can do any changes like delete ,edit or add a new variables...If you want to create a new variable then click on the add a new variable..And then click an existing variable,and then click EDIT to change its name or value ..Now at the end just click on the existing variable,and then click DELETE to remove it.


    ALL Done.......
    Hope you like that information......
    Thank You.......

+ Reply to Thread

Similar Threads

  1. How to set-up MS-Access DB in Windows 7 64 bit OS?
    By Unregistered in forum Windows Forum
    Replies: 5
    Last Post: 05-02-2013, 10:01 AM
  2. How to rename a set of files with unique names in Windows?
    By Unregistered in forum Windows Forum
    Replies: 14
    Last Post: 17-09-2012, 08:41 PM
  3. Replies: 6
    Last Post: 10-09-2012, 02:23 PM