we don't need to go to the new bin directory to run new program.
For Windows XP:
- Start -> Control Panel -> System -> Advanced
- Click on Environment Variables, under System Variables, find PATH, and click on it.
- 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
- Close the window.
- Reopen Command prompt window, and run your code.
For Windows Vista:
- Right click “My Computer” icon
- Choose “Properties” from context menu
- Click “Advanced” tab (“Advanced system settings” link in Vista)
- 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
- Reopen Command prompt window, and run your code.
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