JEnv-for-Windows icon indicating copy to clipboard operation
JEnv-for-Windows copied to clipboard

get-item : Could not find item C:\Program Files\JEnv-for-Windows\src

Open david-kirkland opened this issue 1 year ago • 0 comments
trafficstars

New install on Windows 10 Enterprise. Using the Windows PowerShell terminal built into IntelliJ.

System PATH includes C:\Program Files\JEnv-for-Windows\

JEnv seems to work, but every jenv command produces the same error before the output.

get-item : Could not find item C:\Program Files\JEnv-for-Windows\src.
At C:\Program Files\JEnv-for-Windows\src\jenv.ps1:69 char:10
+ $root = (get-item $PSScriptRoot).parent.fullname
+          ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program Files\JEnv-for-Windows\src:String) [Get-Item], IOException
    + FullyQualifiedErrorId : ItemNotFound,Microsoft.PowerShell.Commands.GetItemCommand

I've tried setting the system PATH variable to C:\Program Files\JEnv-for-Windows\src without luck. Any ideas?

david-kirkland avatar Jul 03 '24 20:07 david-kirkland