Skip to content
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

Suggest: Add a logic to check if the Java environment exists #66

Open
amulet-faith opened this issue Sep 23, 2024 · 0 comments
Open

Suggest: Add a logic to check if the Java environment exists #66

amulet-faith opened this issue Sep 23, 2024 · 0 comments

Comments

@amulet-faith
Copy link

amulet-faith commented Sep 23, 2024

Hi, The following error occurs when I run /src/jenv.ps1 in a new operating system without any java environment:

PS C:\Program Files My\jenv\src> .\jenv.ps1                                          
Get-Command : The term 'java' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At C:\Program Files My\jenv\src\jenv.ps1:68 char:15
+ $javaPaths = (Get-Command java -All).source
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

1 participant