Sometime when you try to compile the java file through command prompt you get some error:
'javac' is not recognized as an internal or external command, operable program or batch file.
in this case you need to manually set the environment variable.
To set the environment variable follow the following steps:
1. Go to the location on your hard drive where you have installed the java.
2. Copy the path.
3. Go to Computer and right click.
4. Click on properties.
5. Click on Advance System Setting.
6.Click on Environment Variables and Click on path
7. At the end paste the location of the java file you have copied.
8. Click on ok and restart the command prompt.
9. It will work this time.
No comments:
Post a Comment