11

I used to use My Computer -> Environment variables to set up PATH for Java, but where can I find the same in Windows 8?

4

2 回答 2

21

Click:

Windows-Key

Type: Control Panel

In the control panel search box, enter:

path

Select

Edit environment variables for your account

or

Edit the system environment variables

as needed.

The environment variable dialog itself is very similar to the one under previous versions of Windows.

于 2013-01-08T22:00:30.680 回答
4

通过简单的两个步骤使用命令提示符设置环境变量:

windows SET 命令示例:

步骤 1.打印 PATH 环境变量

C:\>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\nodejs\;

Step 2.添加一个变量到路径(例如:Java SDK)

// => Path for JDK 8 - C:\Program Files\Java\jdk1.8.0_11\bin
C:\>set PATH=%PATH%;C:\Program Files\Java\jdk1.8.0_11\bin

验证更改

C:\>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\nodejs\;
C:\ProgramFiles\Java\jdk1.8.0_11\bin
于 2014-10-07T08:33:26.113 回答