windows+R and type sysdm.cpl
go to advanced
create a new variable(click new)
variable name JAVA_HOME
variable value C:\Program Files\Java\jdk1.8.0_102
then
on below section scroll down and find path
select path
click edit
put a semicolon at the end
then write
%JAVA_HOME%\bin
click ok and exit
then open command prompt with administrative rights
go to advanced
create a new variable(click new)
variable name JAVA_HOME
variable value C:\Program Files\Java\jdk1.8.0_102
then
on below section scroll down and find path
select path
click edit
put a semicolon at the end
then write
%JAVA_HOME%\bin
click ok and exit
then open command prompt with administrative rights
setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0_102"
if the command succeed,the issue solved
source:http://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt
No comments:
Post a Comment