Window add Java to Path

不想你离开。 提交于 2019-12-18 04:43:12

问题


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


回答1:


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.




回答2:


Set Environment variable using Command Prompt in easy two steps:

Example of windows SET command:

Step 1. Print the PATH environment variable

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

Step 2. Add one variable to path ( For example : 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

Verify the Change

C:\>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\nodejs\;
C:\ProgramFiles\Java\jdk1.8.0_11\bin


来源:https://stackoverflow.com/questions/14224756/window-add-java-to-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!