简体   繁体   English

环境系统变量:无法识别路径错误

[英]environment system variables: path not recognized error

I need set system environment path for java, sdk, opencv, ndk etc.. can I put all the path under the same variable "path", & use the semicoma, ";" 我需要为java,sdk,opencv,ndk等设置系统环境路径。我可以将所有路径都放在同一变量“ path”下,并使用半逗号“;” to separate each other. 彼此分开。

The problem is when I try to test by using cmd.exe It can only recognize the first path values. 问题是当我尝试使用cmd.exe进行测试时,它只能识别第一个路径值。

Example: when I put sdk's path on first place and follow by java's path, it shown 示例:当我将sdk的路径放在第一位并跟随java的路径时,它显示 SDK路径; Java路径;

vice verse, it shown 反之亦然

熟路SDK路径

SO I should separate the path by difference variables name? 所以我应该通过差异变量名称分隔路径? WHat is the best way to solve it? 最好的解决方法是什么? Thanks. 谢谢。

Remove the space after each ; 每次移开空格后; character when you set the path. 设置路径时的字符。

You also somehow have eveything in the path twice . 您也以某种方式在路径上两次出现 See How do I set or change the PATH system variable? 请参阅如何设置或更改PATH系统变量? for the correct way to set the path. 设置路径的正确方法。

You path should look like: 您的路径应如下所示:

C:\android-ndk-r10;C:\Program Files\Java\jdk1.8.0_11\bin;C:\andorid-sdk\sdk\tools; C:\opencv\build;C:\opencv\build\x86\vc10\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind‌​owsPowerShell\v1.0\;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM