Forum : Getting Problem in path setting
Brief description  about Online courses   join in Online courses
View Anusha  D R 's Profile

Getting Problem in path setting

i am unable to set the path to complie the sample program
Asked by Anusha D R | Apr 26, 2010 |  Reply now
Replies (7)
View anusha d-r 's Profile
Thank u to all...i got it..it is working now
Apr 28, 2010
View arun kumar das 's Profile
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
Apr 28, 2010
View avinash pagunta 's Profile
anusha it is same in xp... in xp in computer prperties>advanced>envirnmentvariabls...create new user variable and cpy the path their name it CLASSPATH and in system variable create new and cpy path their and name it PATH...
Apr 28, 2010
View ashutosh shrivastava 's Profile
yes
Apr 28, 2010
View ashutosh shrivastava 's Profile
wy u unable??
Apr 28, 2010
View anusha d-r 's Profile
hi..thank u...but mine is not vista...it is windows XP...so can u tell me how can i resolve this problem in XP platform
Apr 28, 2010
View gurpreet kohli 's Profile
hi!! if u hve a vista platform then, onyour desktop right click on computer icon, then properties,then advanced system settings, in that click enviroment variables, then click new, then a pop up with variable and value will appear. in variable write path and in value write your path ended by ;. and then in command prompt write javac.. here it is!!
Apr 26, 2010