Pages

How to set environment variable in Windows 7 for JAVA

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.
eg : C:\Program Files\Java\jdk1.7.0_17\bin




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.

@msucil

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment