Skip to content

Set JAVA_HOME on Windows #1099

Description

@jeroen

The rJava package needs the $JAVA_HOME variable to be built (and I think also at runtime). GHA runners have several Java versions but they do not set this variable by default.

I think the safest best is Java21 LTS which is available for both platforms. On intel runners:

JAVA_HOME=${JAVA_HOME_21_X64}

And on arm runners:

JAVA_HOME=${JAVA_HOME_21_AARCH64}

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions