To Set Command Path in Windows Vista

Setting up the Command Path in the Windows Vista environment make it easier to compile and execute the Java programs. Instead of having to type the full command path (\Program Files\jdk1.6.0\bin\javac) for each program compilation or execution, you just need to type the javac command at DOS Command Prompt. The Command Path on a Windows environment tells the Windows where to look for the commands that it is told to execute.

To Set Command Path in Windows Vista:
  1. Access Windows button in the Windows Desktop> Control Panel> System and Maintenance> System> Advanced system settings and click on the Continue button when the User Account Control window pops up
  2. Under the System Properties window, select the Advanced tab and click on the Environment Variables button
  3. Under the Environment Variables window, select Path variable in the System Variables section and click on the Edit button
  4. Under the Edit System Variable window, adds a semicolon ( ; ) to the end of the existing Variable value and then adds the path for the bin subdirectory of JDK 1.6 to the list ( C:\Program Files\Java\jdk1.6.0_16\bin>; )
You may confirm that the above Command Path is set correctly by typing path at the DOS Command Prompt. The C:\Program Files\Java\jdk1.6.0_16\bin>; should be visible.

0 comments:

Post a Comment