You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
6
+
# Licensed under the Apache License, Version 2.0 (the "License");
7
+
# you may not use this file except in compliance with the License.
8
+
# You may obtain a copy of the License at
6
9
#
7
10
# https://www.apache.org/licenses/LICENSE-2.0
8
11
#
9
-
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
-
# language governing permissions and limitations under the License.
12
+
# Unless required by applicable law or agreed to in writing, software
13
+
# distributed under the License is distributed on an "AS IS" BASIS,
14
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+
# See the License for the specific language governing permissions and
# Determine the Java command to use to start the JVM.
40
-
if [ -n"$JAVA_HOME" ] ;thenif [ -x"$JAVA_HOME/jre/sh/java" ] ;then
87
+
if [ -n"$JAVA_HOME" ] ;then
88
+
if [ -x"$JAVA_HOME/jre/sh/java" ] ;then
41
89
# IBM's JDK on AIX uses strange locations for the executables
42
-
JAVACMD="$JAVA_HOME/jre/sh/java"else JAVACMD="$JAVA_HOME/bin/java"fiif [ !-x"$JAVACMD" ] ;then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the
90
+
JAVACMD="$JAVA_HOME/jre/sh/java"
91
+
else
92
+
JAVACMD="$JAVA_HOME/bin/java"
93
+
fi
94
+
if [ !-x"$JAVACMD" ] ;then
95
+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
+
97
+
Please set the JAVA_HOME variable in your environment to match the
43
98
location of your Java installation."
44
-
fielse JAVACMD="java" which java >/dev/null 2>&1|| die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation."fi
99
+
fi
100
+
else
101
+
JAVACMD="java"
102
+
which java >/dev/null 2>&1|| die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
+
104
+
Please set the JAVA_HOME variable in your environment to match the
105
+
location of your Java installation."
106
+
fi
107
+
45
108
# Increase the maximum file descriptors if we can.
0 commit comments