Saturday, September 4, 2010

Setting Path on Windows

Add new path in PATH variable, so in command prompt window, 
we don't need to go to the new bin directory to run new program.


For Windows XP:

  1. Start -> Control Panel -> System -> Advanced
  2. Click on Environment Variables, under System Variables, find PATH, and click on it.
  3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value, such as ;C:\Program Files\Java\jdk1.6.0_21\bin
  4. Close the window.
  5. Reopen Command prompt window, and run your code.

For Windows Vista:

  1. Right click “My Computer” icon
  2. Choose “Properties” from context menu
  3. Click “Advanced” tab (“Advanced system settings” link in Vista)
  4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value, such as ;C:\Program Files\Java\jdk1.6.0_21\bin
  5. Reopen Command prompt window, and run your  code.
  6.    

Check Window Vista System 32 bits or 64 bits


Right click “My Computer” icon
Choose “Properties” from context menu you see 32 bits or 64 bits in the line of system type

No comments:

Post a Comment