Is there any Software Engineer ever, who has worked with Java and never cursed the classpath?
Well I have had suffered a lot with this. Anyway for the new comers here is an wonderful site detailing about the classpaths. For beginners it should be a must read:
Do not just go with the name. There is a companion article detailing Managing Java Classpath for other platforms as well.
All the best.