Javac path settings to run java program.

In this tutorial we will learn how to setup Javac in our systems to run java based applications without any errors.

In Windows 10 go right click This PC go to properties & follow the steps shown in screen shots as below

After clicking properties go to Advance System Settings

Set the new variable by giving variable name JAVA_Home & path where jdk bin folder is i.e. “C:\Program Files\Java\jdk-10.0.1\bin\”

Again edit the path like “C:\Program Files\Java\jdk-10.0.1\bin” in below pane as shown in below screen shot

Click ok 3 times & now run javac –version in terminal window [cmd]

If above procedure is done successfully then javac –version will return the Javac version as shown below