Check for JDK 1.8.0_112 and PREpend it

This commit is contained in:
Peter J. Holzer 2016-11-22 21:31:49 +01:00
parent d19833ead9
commit b15bf6f653
1 changed files with 2 additions and 1 deletions

3
.zjava
View File

@ -6,6 +6,7 @@
if whence apppath > /dev/null if whence apppath > /dev/null
then then
for i in \ for i in \
/usr/local/jdk1.8.0_112 \
/usr/local/jre1.6.0_14 \ /usr/local/jre1.6.0_14 \
/usr/local/jdk1.5.0_08 \ /usr/local/jdk1.5.0_08 \
/usr/lib/j2re1.5-sun \ /usr/lib/j2re1.5-sun \
@ -17,7 +18,7 @@ then
do do
if [ -d "$i/bin" ] if [ -d "$i/bin" ]
then then
PATH=$(apppath "$i/bin") PATH=$(preppath "$i/bin")
export JAVA_HOME=$i export JAVA_HOME=$i
break; break;
fi fi