Commands that take class names as arguments, such as java and javac,must find the file that contains the source or bytocode.You can specify the full path to the file or a path relative to the current folder. for exam, if you are in the folder D:\myjava,the following commands compile and run public class
MYClass:
Javac d:\myjava\myclass.java
javac MYClass.java