summarylogtreecommitdiffstats
path: root/java_home.patch
blob: fcc6713acf3141ab91e6782f1723384292a4c267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/ide/bin/launcher.sh b/ide/bin/launcher.sh
index 8701dcb..330f03e 100644
--- a/ide/bin/launcher.sh
+++ b/ide/bin/launcher.sh
@@ -961,22 +961,6 @@ GetDefaultJDK()
   #
   if [ -f "$tmpvar" ]
   then
-    while [ -h "$tmpvar" ]
-    do
-        EchoIfVerbose "Found symlinked JDK, following symlink: $tmpvar"
-        tmpvar2=`ls -ls "$tmpvar"`
-        EchoIfVerbose "The long listing of $tmpvar: '$tmpvar2'"
-        tmpvar2=`expr "$tmpvar2" : '.*-> \(.*\)$'`
-        EchoIfVerbose "If we still have a symlink, follow it again: '$tmpvar2'"
-        if [ `expr "$tmpvar2" : "\.\/"` -gt 0 -o `expr "$tmpvar2" : "\.\.\/"` -gt 0 -o `expr "$tmpvar2" : ".*/.*"` -le 0 ]
-        then
-          tmpvar="`dirname "$tmpvar"`/$tmpvar2"
-          EchoIfVerbose "Calling dirname on symlink and appending '/$tmpvar2' resulting in '$tmpvar'"
-        else
-          tmpvar="$tmpvar2"
-          EchoIfVerbose "Using '$tmpvar2' as-is"
-        fi
-    done
     EchoIfVerbose "If it exists, truncate /bin/java ending of '$tmpvar', otherwise path becomes empty"
     tmpvar=`expr "$tmpvar" : '\(.*\)\/bin\/[^\/]*$'`
     EchoIfVerbose "Found javahome: '$tmpvar'"