0% found this document useful (0 votes)
4 views4 pages

Session3 Updating Path

path updating to user level and System level
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Session3 Updating Path

path updating to user level and System level
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Software environment updating

Session3: Software environment updating


Updating the path to the command prompt:

By default any command we can run from where the command is available.

Now we have java and javac commands in the bin folder which is inside extracted
jdk folder so to run java and javac command we have open the command prompt
from the location of the bin folder.

Now if we have to access java and javac command from anywhere in the present
command prompt we can use set command.

Updating path using set command.

Open the command prompt which can be done by

Windows key + R key opens Run dialog box type cmd opens command prompt
from C:Users/user> location now type

C:Users/user> set path=copied location of the address bar where the commands
are available.

This kind of updating the path is visible for only the current command prompt.

here path can be in both lower case or upper case.

7975938871 Page 1 of 4
Software environment updating

Updating path at user level:

First navigate to the bin folder location where javac and java command files are
available in your computer then press alt + D which selects the address bar now
copy the location by pressing ctrl+c.

Windows + E  This PC Right click properties Advanced system settings


advanced tabclick on environment variablesclick on path on the upper
portion of the windowclick on editclick on new now press ctrl+v to paste
the location of the bin folder.

This will update the path of the software to be able to run the commands from
anywhere and it will be available even after restarting for the current user.

Updating path to all users of the System.

Updating the path using this approach is not advisable. By updating the path in
this approach is visible for all users of the system which can be changed or
manipulated by other users of the system.

Windows + E  This PC Right click properties Advanced system settings


advanced tabclick on environment variablesclick on path on the lower
portion of the windowclick on editclick on new now press ctrl+v to paste
the location of the bin folder.

This will update the path of the commands to all users of the system and will be
available even after restarting the system.

Conclusion:

There are 3 ways for updating the path to run the command from any location

7975938871 Page 2 of 4
Software environment updating

1. Local to the present command prompt by using set command.


2. By updating path environment variable local to the current user.
3. By updating path environment variable global to all users.(note: not
advisable way of setting).

Questions:

1. By default from where we can run the commands?


2. In command prompt how to navigate directly to the desired location ?
3. Which command is used to update the path to the current command
prompt?
4. How to set path to the current command promt?
5. In set path= command is path is case sensitive?
6. How to update path at user level?
7. How to update path at system level?
8. What is the preferred way of updating path?
9. What are 3 levels of path setting ?
10.Does user level path setting stays after restarting the system?

Answers:

1. By default we can run the commands from where it is available.


2. Tio directly navigate to the desired location first go to the desired directory
then select address bar by pressing alt + D Ctrl C then open command
prompt type cd space Ctrl V. which will navigate to the desiered location
directly.
3. Set
4. Open command prompt type set path=paste the copied location of the bin
folder where commands are available.

7975938871 Page 3 of 4
Software environment updating

5. No both uppercase and lowercase can be used.

6. First navigate to the bin folder location where javac and java command
files are available in your computer then press alt + D which selects the
address bar now copy the location by pressing ctrl+c.
Windows + E  This PC Right click properties Advanced system
settings advanced tabclick on environment variablesclick on path on
the upper portion of the windowclick on editclick on new now press
ctrl+v to paste the location of the bin folder.

7. Windows + E  This PC Right click properties Advanced system


settings advanced tabclick on environment variablesclick on path on
the lower portion of the windowclick on editclick on new now press
ctrl+v to paste the location of the bin folder.
8. User level updation.
9. Local to current command prompt
User level path updation
System level.

10. Yes.

7975938871 Page 4 of 4

You might also like