saipraneeth nallapareddy wrote:thank you, it did worked.
but can you explain me why it needs to be done because i am already in the same location right.
The classpath is used by the JVM to find the classes that it needs -- and since the class file is not in the jar file that you specified in the class path, you get an error condition.
In the case of the java compiler, it actually doesn't need the Seek class file. It is generating it.
As for being in the "same location" rule, that only applies when you don't set the class path -- the default class path. In your example, you set it, hence, there is no need to search the default class path.
Henry