What is Environment Variable???
Environment variables are the variables which decides the functionality of Command Prompt.
If we talk about java, then if we don't setup the environment variable,then we have to run program by going in the bin directory which contains the java.exe and javac.exe file which are used for program compilation and running the program.
And moreover we have to paste the source code file in bin directory which creates our work more difficult.
But if we setup the environment variable, then we can run our source code from any directory.
Here is the demo for HOW TO SETUP ENVIRONMENT VARIABLE FOR JAVA.........
If you have any query regarding this or anything else related to programming then feel free to contact us either by leaving comment here or just mail us at surinderrajpal[at]india.com