Search This Blog

About Me

My photo
Blog Written By Dr. Digvijaysinh D Virpura

Friday, May 1, 2020

Setting Environment Variable to Run Java Program

Many students face issue while Executing their first Java Program. If you have not set environment variable properly then you can not execute your java program from your all the directories.
Follow the steps given below to set Environment Variable.




Step1:  Install Jdk and copy the path at which you installed Jdk
In my case its
C:\Program Files\Java\jdk1.7.0_80\bin

Step2: Now go to your desktop. Right Click on My Computer. Click on Properties. Then select Advance System settings


Step3: A Dialog will appear and go to tab Advanced and Click on the bottom Environment Variables
Step4: Dialog box as shown below will appear
                           
Under system variables fina variable name path
                            

After selecting path click on Edit
put semicolon(;) at last and paste the java path which you have copied in step1.
Step5: Now just click ok and you are done. 
Now try running your java program from any drive.


Have a Happy Learning
Regards
Digvijaysinh Virpura

No comments:

Post a Comment