update the path variable

6
Update the PATH variable Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external command, operable program or batch file” To resolve this you need to add the path where the file javac.exe is located to the PATH of your system. The PATH is a list of all locations that the system will search by default while trying to locate some application.

Upload: upton

Post on 06-Jan-2016

27 views

Category:

Documents


0 download

DESCRIPTION

Update the PATH variable. Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external command, operable program or batch file” - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Update the PATH variable

Update the PATH variableTrying to run the command: “javac Ex1.java” you’ve may encountered the error:

“javac is not recognized as internal or external command, operable program or

batch file”

To resolve this you need to add the path where the file javac.exe is located to

the PATH of your system.

The PATH is a list of all locations that the system will search by default while

trying to locate some application.

Page 2: Update the PATH variable

To set the PATH permanently, add the full path of the jdk1.7.0_<version>\bin

directory to the PATH variable. Typically this full path looks something like C:\

Program Files\Java\jdk1.7.0_<version>\bin. Set the PATH as follows on

Microsoft Windows 7 (very similar on other Windows OS):

1. Right Click on “My Computer” > Properties

How to set the PATH permanently

Page 3: Update the PATH variable

2. you’ll get the following window, click on “Advanced system settings”

Page 4: Update the PATH variable

3. Then you’ll get another window, click on “Environment Variables”

Page 5: Update the PATH variable

4. Then you’ll get another window, mark the line starting with “Path” and click

“Edit…”

Page 6: Update the PATH variable

4. Add to the Variable value a semicolon (;) at the and of the line and the path to

the directory containing the file “javac.exe”.

5. OK > OK…