Ticket #546: 179

File 179, 673 bytes (added by dlove, 9 years ago)
Line 
1Index: aimk.site
2===================================================================
3RCS file: /cvs/gridengine/source/aimk.site,v
4retrieving revision 1.66
5diff -u -r1.66 aimk.site
6--- aimk.site   3 Jul 2008 15:14:14 -0000       1.66
7+++ aimk.site   14 Jul 2008 23:04:00 -0000
8@@ -157,6 +157,11 @@
9 if ( ! $?JAVA_HOME ) then
10    set JAVA_BIN = `which \java`
11 
12+   # Resolve any symbolic links to find true absolute path to the executable.
13+   if ( -l "$JAVA_BIN" ) then
14+       set JAVA_BIN = `readlink -f /usr/bin/java`
15+   endif
16+
17    if ( -e "$JAVA_BIN" ) then
18       set JAVAV = `$JAVA_BIN -version |& head -1`
19       set JAVAV = `expr "$JAVAV" : 'java version "1\.\([0-9]\).*"'`