presuming, of course, you've actually installed java - you're missing a 'path' variable
javac itself resides in with all the other java stuff, in program files. If you dno't have a path variable to point your system to this location, you can't call it from anywhere but that directory.
EDIT
presuming you're running XP:
* Right click "My computer", choose 'properties'
* go to the 'Advanced' tab
* click 'Environment Variables'
* find the PATH variable and 'Edit' its value to include the location of your javac, which will depend on version - for example, add
;c:\program files\Java\jdk1.6.0_05\bin
it should now work.
|