From the Control Panel select System
Click on the Advanced tab.
Click on the Environment Variables button.
If you have superuser privaleges, modify the System Variables, PATH parameter and include the directory where the java/javac programs were installed
If you don't have superuser privaleges, modify the User Varialbes and add in a PATH parameter that points to the directory.