how to set path for java using cmd
An example of the command required to do this is: set PATH=C:\Program Files\Java\jdk1.5.0_14\bin;%PATH%. In this case, the JDK root directory is C:\Program Files\Java\jdk1.5.0_14 and the executable (binary) files are located in the bin subdirectory.ou can download a copy of my batch file using this URL: setenv.bat.txt. Once you've created the batch file in your home directory --- i.e., whichever directory you are in when you open a command window --- you can then use the batch file by typing the filename on the command line as shown below.