[英]java path is not set when add path field in environment variables
I am new to java programming language. 我是Java编程语言的新手。 First i download the sdk and install it in to my pc. 首先,我下载SDK并将其安装到我的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. 创建此文件后,我在cmd提示符下输入了javac。 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. 如果有人知道这一点,请帮助我。
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
要测试它。用管理员打开cmd并输入java -version
Follow this Step for Windows for Permanent Path setup: 对于Windows,请按照以下步骤进行永久路径设置:
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 看到您正在使用c:\\ Windows \\ System32和您的管理员,现在输入javac及其完成的名称
Assuming your jdk is installed in c:\\Program Files\\java\\jdk directory 假设您的jdk安装在c:\\ Program Files \\ java \\ jdk目录中
EDIT "Path" system variable which would be --> C:\\WINDOWS\\SYSTEM32 编辑“路径”系统变量,它是-> C:\\ WINDOWS \\ SYSTEM32
To --> C:\\WINDOWS\\SYSTEM32;c:\\Program Files\\java\\jdk\\bin 到-> C:\\ WINDOWS \\ SYSTEM32; c:\\ Program Files \\ java \\ jdk \\ bin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.