Skip to content

Error when powershell.exe is not in the PATH #21

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

Closed
bkmeneguello opened this issue Mar 7, 2022 · 3 comments
Closed

Error when powershell.exe is not in the PATH #21

bkmeneguello opened this issue Mar 7, 2022 · 3 comments

Comments

@bkmeneguello
Copy link

I don't have C:\WINDOWS\System32\WindowsPowerShell\v1.0\ in my PATH because I use the portable PowerShell, which is installed as C:\Program Files\PowerShell\7\pwsh.exe. It could be possible to check if it exists and use it before trying the windows build-in?

jenv change openjdk17
'Powershell.exe' is not recognized as an internal or external command,
operable program or batch file.
@FelixSelter
Copy link
Owner

This will be implemented in Version 2 a complete rewrite of this application which should be more scalable and support tests as well as being more close to the original

@FelixSelter
Copy link
Owner

version 2 is now published and contains this feature.
Please report any bugs.

Thank you for your suggestion

@FelixSelter
Copy link
Owner

Ah, damn it. Github closed it because of my commit message. I pushed an update. Now JEnv asks you to restart with admin rights so it can change the system path. Thank you for your suggestion. Please report any further problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants