0% found this document useful (0 votes)
5 views

Class 1 JavaPathSetting

Java path setting

Uploaded by

Rasool Shaik
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Class 1 JavaPathSetting

Java path setting

Uploaded by

Rasool Shaik
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Java Path: To develop and run Java applications we require some tools and all these

tools are available in a location 'C:\Program Files\Java\jdk1.8.0_40\bin' and hence


this location is considered as 'Java Path'. We cannot execute Java applications if
we do not set this path. There are two ways to set this path.

1. Temporary path: We can set temporary path using 'set path' command in command
prompt. As it is temporary, it will be erased automatically once the command prompt
is closed.

Ex: set path=C:\Program Files\Java\jdk1.8.0_40\bin

2. Permanant path: We can set permanant path by follwing the below steps. It won't
be earsed until we delete explicitly.

1. Goto computer properties


2. Select advanced system settings
3. Click on environment variables button
4. In 'User Variables', find variable 'path' was exist and edit its value with our
'location' otherwise click on 'New' option
1. Type 'Varibale name' as 'path'
2. Paste the 'C:\Program Files\Java\jdk1.8.0_40\bin' as 'value'
5. Click on 'Ok' button

You might also like