How to compile java programs using Windows Command line...
Hi friends I am absolute Newbie in Java.....So far I was compiling and running my Java Programs using Netbeans.....I read in some book that it can be done through Windows Command line also....I did following things......
1.] Wrote my simple program to display "Hello"
Progam:
class Test
{
public static void main(String args[])
{
System.out.println(" Hello !");
}
}
2.] Saved it using name Test.java
3.] Went to the directory in which I stored the file using command : cd
4.] I could see the file using dir command.
5.] Then I did: javac Test.java
But it threw an error:
'javac' is not recognized as an internal or external command,
operable program or batch file.
6.] My question is whats the problem, has it something to do with Windows Vista which I am using it or is that I don't have appropriate Java software installed.
7.] However this same program is giving desired results on Netbeans.

