If I compile .java file using below line how do I run it?
directory structure for this is, myProject/source/MyClass.java. Here, all .class files are stored in folder name classes. So, all .class file will be stored in myProject/classes/ path. To run this .class file, is there any other way except going in to classes folder to run them? like this c:\myPoject\classes>java MyClass