Ticket #344: 99

File 99, 750 bytes (added by dlove, 9 years ago)
Line 
1diff -rubB old/gridengine/source/aimk.site gridengine/source/aimk.site
2--- old/gridengine/source/aimk.site     2006-10-11 10:25:28.000000000 +0100
3+++ gridengine/source/aimk.site 2006-11-18 16:12:25.000000000 +0000
4@@ -140,7 +140,7 @@
5 if ( ! $?JAVA_HOME ) then
6    set JAVA_BIN = `which \java`
7 
8-   if ( -e "$JAVA_BIN" ) then
9+   if (( -e "$JAVA_BIN" ) && ("$JAVA_BIN" != "/usr/bin/java")) then
10       set JAVAV = `$JAVA_BIN -version |& head -1`
11       set JAVAV = `expr "$JAVAV" : 'java version "1\.\([0-9]\).*"'`
12 
13@@ -148,6 +148,10 @@
14          setenv JAVA_HOME `expr //$JAVA_BIN : '//\(.*\)/bin/.*'`
15       endif
16    endif
17+
18+   if (( -e "$JAVA_BIN" ) && ("$JAVA_BIN" == "/usr/bin/java")) then
19+      set argv = ( -no-jni $* )
20+   endif
21 endif
22 
23