In Gentoo the java alternatives are managed using jva-config (or eselect java),
but because the selection is treated as a configuration the symlink to the
current jvm selected is stored in /etc, particularly in the symlink
/etc/java-config-2/current-system-vm which works such as /usr/lib/jvm/default.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
m4/guestfs-java.m4 | 1 +
1 file changed, 1 insertion(+)
diff --git a/m4/guestfs-java.m4 b/m4/guestfs-java.m4
index daa5af32d8bd..1ca9912b0630 100644
--- a/m4/guestfs-java.m4
+++ b/m4/guestfs-java.m4
@@ -46,6 +46,7 @@ if test "x$with_java" != "xno"; then
/usr/lib64/jvm/java \
/usr/lib/jvm/default-java \
/usr/lib/jvm/default \
+ /etc/java-config-2/current-system-vm \
/usr/lib/jvm/java-8-openjdk \
/usr/lib/jvm/java-7-openjdk \
/usr/lib/jvm/java-6-openjdk
--
2.19.1