* java is a case sensitive language. (type in notepad as shown as bellow(Capital Simple Letters))
Then save your java file in hard disk named myFristJava.java (Ex: c:\java\myFristJava.java)
2 Open Command Prompt in your computer by (start->run and typing cmd) or (start->all programs accessories->Command Prompt)
Type in cmd .....
path=c:\program files\jdk1.7\bin (this path must be the path of jdk installed on your computer. )
Now compiler is ready to compile your java file.
then type on cmd...
your java file's saved file path (Ex: cd java)for c:\java
javac myFristJava.java
This command line arg tells java compiler to compile the myFristJava.java file in c:\java folder.
java myFristJava
This line tells to jvm(Java Virtual Machine) to run your java program.
If correctly compiled and run, prints Hellow. My name is saman. in the command prompt.