Ticker

6/recent/ticker-posts

Java (Java Path)

HOW TO SET JAVA PATH IN WINDOWS 10

Just installation is not enough to run Java programs, so we need to set Java path to run and execute the Java programs.



STEPS TO SET JAVA PATH

Step 1: Copy the 'bin' folder path from C:\Program Files\Java\jdk-12.0.1




Step 2: Open the My computer property window. You can use "Sysdm.cpl" run command to open the My computer property window.




Step 3: Click on "Advance" tab button.





Step 4: Click on "Environment Variables"




Step 5: Click on the "New" button.




Step 6: Write path in 'Variable name' and paste the bin folder path C:\Program Files\Java\jdk-12.0.1\bin in 'Variable value'




Step 7: Finally click on 'Ok' button.




HOW TO CHECK JAVA PATH BY MS-DOS COMMANDS


After set Java path, Lets check it by MS-DOS Command.

1. Open the MS-DOS by typing 'cmd' in Run command window.




2. Type 'Java -Version' command and press the Enter key.
If its show the Java version which installed in your PC, means Java path successfully set.














HOME

Post a Comment

0 Comments