Not able to compile
When I try to compile the java files, I get the following error message:
I checked, I have Java 1.5 on my machine. Its a strange error for me. Please advice.
'javac' is not recognized as an internal or external command,
operable program or batch file
u have not set the path of the bin directory
Yep, he's right. The thing is that i had this problem when i first started and someone told me that, but i didn't know what it meant. So, here's what you do (im assuming that you're using windows, i don't know how to do it with any other OS).
Originally Posted by vagarwal_mca
Ok, find out where your compiler is located. It's most likely going to be in C:\Program Files\Java\jdk1.6.0_02\bin (or whatever version of jdk you have). So, get the location of the bin folder in your JDK, and copy it.
Now, go to Start, Control Panel, Performance and Maintenance, System, Advanced tab, Environment variables, then go to the section labeled "System", and highlight the part called "Path" and and click Edit. Now, at the end of the text, put a semicolon (; ... if there isn't one already) and then paste the file path of your bin directory that you copied before. Make sure there's no space in between the semicolon and the filepath. Now click OK, and everything should work.
Let me know if you have any problems