Discussion board
Getting Problem in path setting
By Anusha D R
i am unable to set the path to complie the sample program
Reply
Post   Reset
Arun Kumar Das replied to Anusha D R Wednesday, April 28, 2010
Hi Anusha,

javac is an executable command which comes as part of the jdk package.

You will be executing javac command from your command prompt which is part of Windows. Windows doesn't have any idea as where to find the javac.exe or simply javac executable from. By setting the path or environment variable you are telling windows the location of javac.exe it can access to execute it.

Please follow the below steps to set the Path:
1. Go to my computers -> c drive -> programme files -> java -> jdk 1.x->
bin
2. Copy the path that is in the address bar.
3. Now on the desktop right click on My computer icon and select properties .
4. Select the Advanced tab -> Environment Variable -> in system variables select path then click on edit -> now in the edit system variable box put a ';' at the end and paste the copied path and click on OK button.Your path is set now...

Hope this helped...

Cheers....
Java Teacher