|
@@ -837,7 +837,7 @@ ifndef NO_JVMTI
|
|
|
JDIR=$(shell /usr/sbin/update-java-alternatives -l | head -1 | awk '{print $$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 /usr/sbin/alternatives --display java | tail -1 | cut -d' ' -f 5 | sed 's%/jre/bin/java.%%g')
|
|
|
|
|
|
|
+ JDIR=$(shell /usr/sbin/alternatives --display java | tail -1 | cut -d' ' -f 5 | sed -e 's%/jre/bin/java.%%g' -e 's%/bin/java.%%g')
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
ifndef JDIR
|
|
ifndef JDIR
|