|
@@ -36,7 +36,7 @@ SOLIBEXT=so
|
|
# The following works at least on fedora 23, you may need the next
|
|
# The following works at least on fedora 23, you may need the next
|
|
# line for other distros.
|
|
# line for other distros.
|
|
ifneq (,$(wildcard /usr/sbin/update-java-alternatives))
|
|
ifneq (,$(wildcard /usr/sbin/update-java-alternatives))
|
|
-JDIR=$(shell /usr/sbin/update-java-alternatives -l | head -1 | cut -d ' ' -f 3)
|
|
|
|
|
|
+JDIR=$(shell /usr/sbin/update-java-alternatives -l | head -1 | awk '{print $$3}')
|
|
else
|
|
else
|
|
ifneq (,$(wildcard /usr/sbin/alternatives))
|
|
ifneq (,$(wildcard /usr/sbin/alternatives))
|
|
JDIR=$(shell alternatives --display java | tail -1 | cut -d' ' -f 5 | sed 's%/jre/bin/java.%%g')
|
|
JDIR=$(shell alternatives --display java | tail -1 | cut -d' ' -f 5 | sed 's%/jre/bin/java.%%g')
|