Hi All,
I could not get the rules regarding the class path. I placed the file helloworld.java in D:\java and I was able to compile and run helloworld from D:\java with out setting class path (the class path environment variable is empty). How can this be possible?
I have read that java.exe will not search the current folder by default for the class files. How ever, if I over ride the class path at run time by specifying
java -cp MyJar.jar, it gives NoClassDefFoundError and I had to run the file by including . in the class path ie, java -cp MyJar.jar;. helloworld (I ran it from D:\java)
am I missing any thing here?
regards