Jelo Nehuptra is right, but make sure that you have installed jdk & you need to configure environment variables if you are using windows.
classpath & path you need to be set to run javac or java command on command prompt. Rest is explained by Jelo Nehuptra.
Aniket Kulkarni
Oracle Certified Professional, Java SE 6 Programmer.
Politics is a circus designed to distract you from what is really going on. So is this tiny ad: