
what is classpath?

The <B>Classpath is an argument:
set either on the command-line, or
through an environment variable.
That tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs.

Hi Friend,
Classpath is Environment Variable that tells JVM or Java Tools where to find the classes. In CLASSPATH environment you need to specify only .class files (i.e., jar, zip files ? Inside jar, zip files you will find only java classes) i.e. you are helping java Virtual Machine (JVM) to find java class files.
Thanks

hi all Friends
I am stuck using the java servlets and problem raise for classpath.
I had a problem with servlet to call a class because when i complied my servlet class file it give me error that it didn't found any java class (which is java class calling from servlet).
but i solved this problem by putting the path of classes to the classpath and then it worked fine after doing that and my all files compiled fine and my project worked.
But now i am again trying another project and trying to compile this project but got same problem again. Now this time i doing the all procedure for setting the classpath to solve the problem as i solved for previous project. but this time my classpath solution is not working for this project and i am trying this procedure again and again but i don't know i am stuck please help me friends
thanks in advance SANTBIR SINGH