Check java home mac
- how to print java_home in cmd
- print java_home in cmd linux
- how to find java_home in cmd
- how to print java_home in windows
Echo %java_home% returns %java_home.
How to set java home path in windows
How can I display the contents of an environment variable from the command prompt in Windows 7?
As an additional bit of information: While SET works with global or system variables, sometimes you want to write and read User variables, and this is done with the SETX command.
SETX is included in the base installs of Windows beginning with Vista, but was also available in Windows XP by installing the Resource Pack.
One difference about SETX though is that you cannot read the variable out in the same command window you wrote it in.
You have to write the SETX command in one Command or Powershell window, and then open a new window to read it using ECHO.
SETX can also write global or system variables.
To Set a user variable using SETX:
To set a global or system variable using SETX:
To read a user or global variable:
Remember, you must open a new Command or Powershell window to read this variable.
answered Oct 28, 2014 at 20:44
45.8k5353 gold badges9595 silver badges135135 bronze badges
- how to check java_home in cmd
- cmd print java home