This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Mohammad, I'm moving this question to the Java in General (Beginner) forum as the SCJP exam does not feature classpath-related problems. Please check out Java.sun.com tooldocs: Setting the class path for detailed information about the classapth.
I am Facing problem i dont know how to set class path? and why we need class path.
Depending on your operating system, in Win9x you set the classpath in the autoexec.bat file. In WinNT, Win2K you set it in "environment variables". In either case, you set it wherever you set your PATH.
You need a classpath to tell the JVM where to find your classes that you want it to execute.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt