You should invoke the
javac
command from the folder M
yFirstApp.java
is. See the example at the
documentation page[
^].
[Update]
I fixed two errors in your code.
- Your class should be declared
public
. args
type is String
(instead of Strings).
The following code compiles and executes fine:
import java.io.*;
public class hai
{
public static void main(String args[])
{
System.out.println("hai ");
}
}
[/Update]