I had a java file which need to be compiled and it was present in some other directory, i can compile it simply by specifying the full path where the java file is located but my problem is can i compile it by mentioning path to that java file in classpath
Yes but u want to need first set-up the global environment path for Java & then it will be compile successfully