How to set path in Java?
Two ways to set path in Java :-
1) Temporary path set
2) Permanent path set
1) Temporary Path Set:-
i) Open cmd
ii) Go to the path where you save your program
iii) Type >set path=copy and pest the Java bin path it is like:- c:/program file/java/bin
iv) Now, press enter...
2) Permanent Path Set:-
i) Open the property of computer.
ii) Click on Advanced system settings.
iii) Click on Environment Variables...
iv) Click on the PATH variables and press Edit or create New variables name as PATH
v) Copy and pest the path of the java bin folder path seems like: C:\Program Files\Java\jdk1.8.0_131\bin;
Comments