This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Nikhil, it is important that you tell us exactly what command you typed in to compile your program. If you did that earlier, it would have been much easier to help you. Because you didn't tell us exactly what you did, we have to guess, and it takes much longer to find out what exactly the problem is.
The topic that Giovanni posted a link to explains that if you have directories with spaces in your classpath, you can get this error. The solution is to enclose the path names that contain spaces in "quotes".