Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a difference between setting JAVA_HOME through cmd line or GUI

This is a real noob question.

When I set up JAVA_HOME using the command line interface I used set JAVA_HOME = C:\Program Files\Java\jdk1.6.0_13

However when I open the JAVA_HOME variable from System>Advanced>Environment Variables the change is not visible. Are these two different settings?

I have this question every time I set up a new Jdk and have never fully understood why the two seem to be different.

like image 949
Ankur Avatar asked Apr 20 '09 08:04

Ankur


1 Answers

The variable you set on command line is for that command shell and any other processes it starts. When you set it from System/Advanced/Environment Variables it affects any other process you start, including command shell, after setting it. Depending on where you set it, it will be available to the same user or any other use who logs in as well.

like image 122
Miserable Variable Avatar answered Oct 13 '22 20:10

Miserable Variable