1 | if (IS_NETWARE) {↵ | | 1 | if (IS_NETWARE) {↵
|
2 | // Extrapolating from:↵ | | 2 | // Extrapolating from:↵
|
3 | // "NetWare may have a "java" in that directory, but 99% of↵ | | 3 | // "NetWare may have a "java" in that directory, but 99% of↵
|
4 | // the time, you don't want to execute it" -- Jeff Tulley↵ | | 4 | // the time, you don't want to execute it" -- Jeff Tulley↵
|
5 | // <JTULLEY@novell.com>↵ | | 5 | // <JTULLEY@novell.com>↵
|
6 | return command;↵ | | 6 | return command;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | File jExecutable = null;↵ | | 8 | File jExecutable = null;↵
|
|
9 | if (IS_AIX) {↵ | | 9 | if (IS_AIX) {↵
|
10 | // On IBM's JDK 1.2 the directory layout is different, 1.3 follows↵ | | 10 | // On IBM's JDK 1.2 the directory layout is different, 1.3 follows↵
|
11 | // Sun's layout.↵ | | 11 | // Sun's layout.↵
|
12 | jExecutable = findInDir(JAVA_HOME + "/../sh", command);↵ | | 12 | jExecutable = findInDir(JAVA_HOME + "/sh", command);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | if (jExecutable == null) {↵ | | 14 | if (jExecutable == null) {↵
|
15 | jExecutable = findInDir(JAVA_HOME + "/../bin", command);↵ | | 15 | jExecutable = findInDir(JAVA_HOME + "/bin", command);↵
|
16 | }↵ | | 16 | }↵
|
|
17 | if (jExecutable != null) {↵ | | 17 | if (jExecutable != null) {↵
|
18 | return jExecutable.getAbsolutePath();↵ | | 18 | return jExecutable.getAbsolutePath();↵
|
19 | } else {↵ | | 19 | } else {↵
|
20 | // fall back to JRE bin directory, also catches JDK 1.0 and 1.1↵ | | 20 | // ↵
|
21 | // where java.home points to the root of the JDK and Mac OS X where↵ | | |
|
22 | // the whole directory layout is different from Sun's↵ | | 21 | Unfortunately on Windows java.home doesn't always refer↵
|
| | | 22 | // to the correct location, so we need to fall back to↵
|
| | | 23 | // assuming java is somewhere on the PATH.↵
|
23 | return getJreExecutable(command);↵ | | 24 | return addExtension(command);↵
|
24 | } | | 25 | }
|