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