new to java

Hi friends,

when i'm compiling my 1st program , i'm getting a message

" 'javac' is not recognized as an internal or external command, operable program or batch file"

so what should i do to compile my program,

is it bcoz of "Java Virtual Machine code" but "jre-6-windows-i586" is installed in my system.

& if its bcoz of JVM , tell me from where i can download for free, send me complete link

thanks in advance

Ashish

[473 byte] By [erashish14a] at [2007-11-26 19:58:04]
# 1
You need the JDK for developing java applications. The JRE is only for running java applications.Here You can download the JDK: http://java.sun.com/javase/downloads/index.jsp
bytetrona at 2007-7-9 22:53:25 > top of Java-index,Java Essentials,New To Java...
# 2
You need to set the classpath.Right click on "My Computer" if u r using WIndows OS.Then in Properties -> Advanced Tab -> Environment Variables -> Create "Path" if that doesn't already exists and give the path of the java.exe (it exists in bin folder).
Terminatora at 2007-7-9 22:53:25 > top of Java-index,Java Essentials,New To Java...
# 3
Set JAVA_HOME environment variable in Windows.Control Panel->System->Environment VariablesCreate a new one that points to you java home based directory.
smiles78a at 2007-7-9 22:53:25 > top of Java-index,Java Essentials,New To Java...