-
Notifications
You must be signed in to change notification settings - Fork 91
use command doesn't work on PowerShell #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks. I will look into this tomorrow. I unfortunately have no time today |
I think theres no other way to get this working with powershell then calling the ps1 script. You can even set it manually with $Env:JENVUSE=jdk17 so you dont have to call the script at all, if thats convenient for you. I can imagine why this issue with "remove" happens on cmd but I need to investigate further tomorrow |
I fixed the issue with cmd. There's no way to fix it for PowerShell. You either have to call the ps1 script or set the env var manually. Can this be closed now? Thank you for your contribution |
Thank you. The
|
Thanks. I added a warning for better distinction as well |
jenv use
command usingjenv.bat
doesn't change the java version for the current session on PowerShell. Usingjenv.ps1
works alright.This is PowerShell 7.2.2 using
jenv.bat
:On cmd, however, it changes the java version but then
jenv use remove
doesn't revert it:The text was updated successfully, but these errors were encountered: