Hi, thanks for your response.
I see what you are saying. However, I was referring to the line that actually runs GetJar
java GetJar
GetJar.class does exist in the same directory at this point, but I was thinking that the classpath needs to be set to . in order to be able to access it. that was the point of my original question.
thanks.
Sebanti Sanyal wrote:You need to set classpath only to access .class files, not the source file. Here current directory is not included in class path and that's okay since MyJar.jar contains the required .class file. Please let me know if I am correct.