--- hsqldb.orig 2005-11-11 15:03:51.000000000 +0100 +++ hsqldb 2005-11-11 15:30:45.000000000 +0100 @@ -16,6 +16,21 @@ # Thanks to Meikel Bisping for his contributions. -- Blaine +# Gentoo specific - make sure that 'java' executable is present in PATH, +# so the following 'which java' wouldn't fail. (resolves Bug #103024) +if [ -z "$(which java 2>/dev/null)" ]; then + NOWPATH=${PATH} + for E in $(find /etc/env.d -type f -name *java); do + source ${E} + if [ "${NOWPATH}" != "${PATH}" ]; then + PATH=${NOWPATH}:${PATH} + fi + done + unset E + unset NOWPATH + export PATH +fi + JAVA_EXECUTABLE=$(which java 2>/dev/null) # Unless you copied a hsqldb.jar file from another system, this typically