In java path is the variable which holds the specific location of the binary executable files of java like- java/javac etc

How to set path--
Well there are two ways by which we can set path
we will check out how to set path temporarily ..

Temporary settings:
1. Go to start-->run -->type cmd 2. click on ok. It will open command prompt for windows 3. Now navigate to the path where you have installed your java(JDK installation folder)
it might be C:\Program Files\java\jdk<<version>>\ 4. Copy the path and come back to command prompt.
5. Type the below written command: you are done!! Now you can write any java program and compile the same.

Classpath is the variable which is used to tell JVM from where all my classes are residing. and from which location it has to pick the required .class files.
How to set classpath:
Please go through ..
1. http://www.mydigitalvoice.in/2012/01/setting-class-path-in-java-in-windows.html
[null, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://2.bp.blogspot.com/-MivO_Y-d1Io/UY0xDN56SHI/AAAAAAAARXg/kyLOzydirQI/s1600/java.jpg", "src": "https://2.bp.blogspot.com/-MivO_Y-d1Io/UY0xDN56SHI/AAAAAAAARXg/kyLOzydirQI/s1600/java.jpg", "formatted_filename": "java"}, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://3.bp.blogspot.com/-ei-jietsFYQ/UY0x_XaMbYI/AAAAAAAARXo/bF3d8_T-6B0/s640/run.JPG", "src": "https://3.bp.blogspot.com/-ei-jietsFYQ/UY0x_XaMbYI/AAAAAAAARXo/bF3d8_T-6B0/s640/run.JPG", "formatted_filename": "run", "rendered_width": 640, "rendered_height": 326}, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://1.bp.blogspot.com/-a1ARnPPs660/UY0yeFKCZXI/AAAAAAAARXw/bfxP0PfulS0/s640/command.JPG", "src": "https://1.bp.blogspot.com/-a1ARnPPs660/UY0yeFKCZXI/AAAAAAAARXw/bfxP0PfulS0/s640/command.JPG", "formatted_filename": "command", "rendered_width": 640, "rendered_height": 318}, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://1.bp.blogspot.com/-O7O1xxyEFBQ/UY0zBV6rieI/AAAAAAAARX4/9byQdn5kTP0/s1600/installed+path.JPG", "src": "https://1.bp.blogspot.com/-O7O1xxyEFBQ/UY0zBV6rieI/AAAAAAAARX4/9byQdn5kTP0/s1600/installed+path.JPG", "formatted_filename": "installed path"}, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://1.bp.blogspot.com/-BdTf5zqZJRI/UY00EKn4-OI/AAAAAAAARYA/ZagpZTvsWoQ/s640/path.JPG", "src": "https://1.bp.blogspot.com/-BdTf5zqZJRI/UY00EKn4-OI/AAAAAAAARYA/ZagpZTvsWoQ/s640/path.JPG", "formatted_filename": "path", "rendered_width": 640, "rendered_height": 324}, null, {"document_url": "https://www.mydigitalvoice.in/2013/05/difference-between-path-and-classpath.html", "unformatted_src": "https://2.bp.blogspot.com/-MivO_Y-d1Io/UY0xDN56SHI/AAAAAAAARXg/kyLOzydirQI/s72-c/java.jpg", "src": "https://2.bp.blogspot.com/-MivO_Y-d1Io/UY0xDN56SHI/AAAAAAAARXg/kyLOzydirQI/s72-c/java.jpg", "formatted_filename": "java", "alt_text": "Difference Between Path And Classpath In Java"}, null, null, null, null, null]