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

Problem during a puppet run with the JAVA_HOME environment variable #5

Open
awatchanaman opened this issue Aug 27, 2024 · 1 comment

Comments

@awatchanaman
Copy link

hello, zulu17 works well in manual installation (choco install) but there is a problem during a puppet run, the JAVA_HOME environment variable is not registered. Can you add install-chocolateyEnvironmentVariable "JAVA_HOME" "C:/Program Files\Zulu\zulu-17\bin" ?? Sincerely

=> during the puppet run, we have an error 83 during the installation of a package which has zulu17 as a dependency=> as if zulu had not registered the java home variable

@ajshastri
Copy link
Owner

I think none of the packages have that to prevent overriding the JAVA_HOME variable. It's best not to change it, considering the vast number of versions out there and the vast number of distributions.

Let me work on adding the ability to use FeatureJavaHome which when triggered, should add the JAVA_HOME variable.

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