Check for JDK 1.8.0_112 and PREpend it
This commit is contained in:
parent
d19833ead9
commit
b15bf6f653
3
.zjava
3
.zjava
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue