I know that the resulting path is the concatenation of system + user variables. However, my resulting path contains an entry which I don't know where is coming from, and on top of that is malformed, so it's causing some problems.
C:\Users\sarc83518>path
PATH=C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\PuTTY;C:\Program Files\dotnet;C:\Program Files\apache-maven-3.6.3\bin;C:\Program Files\gradle\gradle-6.8\bin;C:\ProgramData\chocolatey\bin;c:\dev;C:\Program Files\PowerShell\7;C:\Users\L1_asarco\AppData\Local\Microsoft\WindowsApps;C:\Users\sarc83518.jdks\jdk-16.0.1\bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Amazon\AWSCLIV2;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\sarc83518.jdks\jdk-16.0.1=:\Users\sarc83518.jdks\openjdk-8u282-b0;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
(look at the entry in bold)
These are my system variables:
As you can see, this wrong entry appears between my system and user variables, and I have no idea where is it coming from. How can I get rid of it?
Edit: here's the value of JAVA_HOME, and Java works fine, that's not the problem.
I'm not adding anything to the path manually, the entry in bold just appears there and I don't know where is coming from, it causes problems with some application that tries to read the path entries one by one and fails at that one because is not a valid path.
I'm going to delete duplicate entries, but that is not causing this issue.
java -version
only for it to fail?PATH
?C:\Users\sarc83518>path
vs.C:\Users\sarc83518;>path
?C:\Users\sarc83518.jdks\jdk-16.0.1\bin
- Appears to be another mistake.%USERPROFILE%
. (2) Useregedit
to position toComputer\HKEY_USERS
, enter first long sub-key, then sub-keyVolatile Environment
; what do you have in itemUSERPROFILE
?