Skip to content

Remove support for JAVA_HOME#69149

Merged
jasontedor merged 4 commits intoelastic:masterfrom
jasontedor:remove-java-home
Feb 18, 2021
Merged

Remove support for JAVA_HOME#69149
jasontedor merged 4 commits intoelastic:masterfrom
jasontedor:remove-java-home

Conversation

@jasontedor
Copy link
Copy Markdown
Member

This commit removes support for JAVA_HOME. As we previously deprecated usage of JAVA_HOME to override the path for the JDK, this commit follows up by removing support for JAVA_HOME. Note that we do not treat JAVA_HOME being set as a failure, as it is perfectly reasonable for a user to have JAVA_HOME configured at the system level.

Closes #55820

This commit removes support for JAVA_HOME. As we previously deprecated
usage of JAVA_HOME to override the path for the JDK, this commit follows
up by removing support for JAVA_HOME. Note that we do not treat
JAVA_HOME being set as a failure, as it is perfectly reasonable for a
user to have JAVA_HOME configured at the system level.
@jasontedor jasontedor added >breaking :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v8.0.0 labels Feb 17, 2021
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Feb 17, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)


*Impact* +
Use the bundled JDK (preferable), or set `ES_JAVA_HOME`. `JAVA_HOME` will
silently be ignored.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't true, the startup scripts will print a warning.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, would you be okay if we drop the word "silently" here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed 7ac9807.

Copy link
Copy Markdown
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, Jason!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should we stop honoring JAVA_HOME in favor of a dedicated environment variable

5 participants