hello friends, I am a java beginner. I have installed JDK 1.6 successfully. But I am unable to run any program because of this error:
E:\Java>javac helloworld.java
'javac' is not recognized as an internal or external command, operable program or batch file.
Please reply ASAP .....
Loading
Sam HobbsPosted Jul 12, 2011, 2:18 PM
Abhimanyu K VatsaPosted Jul 12, 2011, 6:24 AM
VulpesPosted Jul 12, 2011, 6:03 AM
Deepak VermaPosted Jul 12, 2011, 6:02 AM
http://www.c-sharpcorner.com/UploadFile/941fc8/8243/
Jiteendra SampathiraoPosted Jul 12, 2011, 5:45 AM
have you set your pathname and class name correctly?..
go to your java's bin folder.
copy its path(eg it may look like C:\jdk1.3\bin or if you have a special folder myjava in your bin then it may look like C:\jdk1.3\bin\myjava)
go to windows command prompt(there it may be written as C:\Documents and Settings\Administrator> , whatever type cd\
press enter.it will be changed to C:\, type cd paste your path and press enter. now your path has been set there(temporary setting)
now you can compile it.
another one is whatever program you try make sure that it is stored in bin of your java and also it is STORED AS A JAVA FILE NOT TEXT FILE.
mostly you type the program in notepad. then save it there. but mostly it is saved as text file.
this can be avoided by typing the program in notepad save it somewhere and from there give save as to bin folder. dont forget to give the extension java and file type as all files.
also make sure that your class name and program name is the same and java is CASE SENSITIVE
Source: yahoo answers
Hope it help you....