Skip to content

Java homes not found for default install of java on Fedora #25298

@chbatey

Description

@chbatey

I have open jdk via the Fedora repos and hotspot via the Oracle RPMs.

Oracle put it in /usr/java/

ll /usr/java
drwxr-xr-x. 9 root root 4.0K Jun 21 07:01 [1]  jdk1.8.0_172-amd64
lrwxrwxrwx. 1 root root   16 Jun 21 07:01 [2]  default -> /usr/java/latest
lrwxrwxrwx. 1 root root   28 Jun 21 07:01 [3]  latest -> /usr/java/jdk1.8.0_172-amd64

OpenJDK packages put it in /usr/lib/jvm

 ll /usr/lib/jvm/                                                                                                                                                                             
drwxr-xr-x. 3 root root 4.0K Mar 29 15:21 [1]  java-1.8.0-openjdk-1.8.0.162-3.b12.fc28.x86_64
drwxr-xr-x. 7 root root 4.0K Jun 28 08:12 [2]  java-1.8.0-openjdk-1.8.0.172-9.b11.fc28.x86_64
lrwxrwxrwx. 1 root root   32 Jun 28 08:13 [3]  java-1.8.0 -> /etc/alternatives/java_sdk_1.8.0
lrwxrwxrwx. 1 root root   40 Jun 28 08:13 [4]  java-1.8.0-openjdk -> /etc/alternatives/java_sdk_1.8.0_openjdk
lrwxrwxrwx. 1 root root   24 Jul  3 07:57 [5] 
lrwxrwxrwx. 1 root root   34 Jun 28 08:13 [6]  java-openjdk -> /etc/alternatives/java_sdk_openjdk
lrwxrwxrwx. 1 root root   27 Jun 28 08:13 [7]  jre-1.8.0 -> /etc/alternatives/jre_1.8.0
lrwxrwxrwx. 1 root root   35 Jun 28 08:13 [8]  jre-1.8.0-openjdk -> /etc/alternatives/jre_1.8.0_openjdk
lrwxrwxrwx. 1 root root   50 Jun 18 17:54 [9]  jre-1.8.0-openjdk-1.8.0.172-9.b11.fc28.x86_64 -> java-1.8.0-openjdk-1.8.0.172-9.b11.fc28.x86_64/jre
lrwxrwxrwx. 1 root root   29 Jun 28 08:13 [10] jre-openjdk -> /etc/alternatives/jre_openjdk

Creating a symlink in /usr/lib/java for java-8-akka -> /usr/lib/jvm/java-1.8.0/ makes the build work.

We need some more regexing :)

Metadata

Metadata

Assignees

Labels

1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being accepted2 - pick nextUsed to mark issues which are next up in the queue to be worked on. The tag is non-bindingt:build

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions