We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ed4e4 commit af878ffCopy full SHA for af878ff
jenv.ps1
@@ -85,7 +85,7 @@ function Invoke-Use {
85
$Env:JAVA_HOME = $config.Get_Item($name)
86
87
$newPath = ""
88
- $($Env:Path.split(';', [System.StringSplitOptions]::RemoveEmptyEntries)).foreach{
+ $([System.Environment]::GetEnvironmentVariable('PATH','User').split(';', [System.StringSplitOptions]::RemoveEmptyEntries)).foreach{
89
$path = $_
90
if ($path -notmatch '\\$') { $path += '\' }
91
if (!(Test-Path $path"java.exe")) {
0 commit comments