Session3 Updating Path
Session3 Updating Path
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.
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.
7975938871 Page 1 of 4
Software environment updating
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.
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 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.
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
Questions:
Answers:
7975938871 Page 3 of 4
Software environment updating
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 tabclick on environment variablesclick on path on
the upper portion of the windowclick on editclick on new now press
ctrl+v to paste the location of the bin folder.
10. Yes.
7975938871 Page 4 of 4