This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Originally posted by ZEESHAN AZIZ: I want to add a file named sdk.jar in classpath. What is the procedure of adding a jar file to classpath.
Right click on My computer -->properties-->Advanced-->Environment Variables. Then either create a new CLASSPATH system variable if not already present or simply add the jar file you want by editing the existing CLASSPATH variable. For instance if you want to add the jar file sdk.jar located in C:\Java\lib then add C:\Java\lib\sdk.jar in your CLASSPATH.
To initiate this classpath, close the existing command prompt window and open a new window. The classpath should take effect. You can check this by typing 'set claspath' at the prompt.