minor edit, awaiting code
[feisty_meow.git] / scripts / customize / fred / java_profile.sh
index 99027e6ff482120151f667743a8fafc372601611..92a4f52a6bfb4e88391fd7b133270a60d45417ef 100644 (file)
@@ -32,6 +32,11 @@ function intuition_failure()
 # this bin portion works for most javas...
 export JAVA_BIN_PIECE=bin
 
+# try using java itself if we can.
+#if [ ! -d "$JAVA_HOME" ]; then
+
+#fi
+
 if [ ! -d "$JAVA_HOME" ]; then
   # try a recent version.
   export JAVA_HOME=/usr/lib/jvm/java-8-oracle
@@ -65,7 +70,7 @@ fi
 if [ ! -d "$JAVA_HOME" ]; then
   unset JAVA_HOME
   unset JAVA_BIN_PIECE
-  if [ -z "$(whichable java 2>/dev/null)" ]; then
+  if [ -z "$(whichable java)" ]; then
     intuition_failure JAVA_HOME
   fi
 fi
@@ -104,7 +109,7 @@ else
     ECLIPSE_DIR=$(echo $ECLIPSE_DIR | sed -e 's/^\(.\):/\/cygdrive\/\1/')
   fi
 fi
-if [ -z "$ECLIPSE_DIR" -a -z "$(whichable eclipse 2>/dev/null)" ]; then
+if [ -z "$ECLIPSE_DIR" -a -z "$(whichable eclipse)" ]; then
   intuition_failure ECLIPSE_DIR
 fi