Reputation: 4465
I am new to java programming language. First i download the sdk and install it in to my pc. Then i add a new environment variable like this
path C:\Program Files\Java\jdk1.6.0_29\bin
After creating this i entered javac in my cmd prompt. But i didn't get any thing.
'javac' is not recognized as an internal or external command.
operable program or batch file.
i am look in to some tutorials they said this way for setting path. if any one know about this please help me.
Upvotes: 0
Views: 9769
Reputation: 154
Upvotes: 3
Reputation: 4972
1. Right click My Computer->Advence Option->Environment Varibles->SystemVariables
2. variable : Path->Edit
3. Copy your jdk bin directory i.e. C:\Program Files\Java\jdk1.6.0_29\bin
4. Paste it after putting a semi-colon(;) in value section
To test it..Open cmd with administrator and type java -version
Upvotes: 1
Reputation: 745
Assuming your jdk is installed in c:\Program Files\java\jdk directory
EDIT "Path" system variable which would be --> C:\WINDOWS\SYSTEM32
To --> C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin
Upvotes: 0
Reputation: 4762
Follow this Step for Windows for Permanent Path setup:
1) My Computer Properties
2) Advanced Option
3) Environment Variable
4) New tab
5) Name= Path
6) Value = C:\Program Files\Java\jdk1.6.0_29\bin
7) Ok
EDIT
See that you are into c:\Windows\System32 and your admin That's IT now type javac and its DONE
Upvotes: 0