Skip to content

Commit

Permalink
Update java-env.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Jun 3, 2024
1 parent 6a36618 commit 2dfa825
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions java-env.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
## INITENV +PATH LD_LIBRARY_PATH %{java_home}/lib
## NOCOMPILER

%if 0%{?rhel} >= 9
%define java_home /usr/lib/jvm/java
%if %{?rhel:1}
%if 0%{?rhel} < 9
# /usr/lib/jvm/java on EL8 contains java 1.8, and Bazel requires java 11
%define java_home /usr/lib/jvm/java-11
%else
%define java_home /usr/lib/jvm/java
%endif
%endif
Source: none

Expand Down

0 comments on commit 2dfa825

Please sign in to comment.