Permalink
Browse files

Updated clj to support IBM J2SE

  • Loading branch information...
1 parent 0e283e2 commit 32fbf590a9b0b68dbafec7c0fa226379cde45bdd Steven Knight committed Jul 22, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 clj
View
8 clj
@@ -105,7 +105,13 @@ if [ -z "$JAVA" ]; then
if $cygwin; then
JAVA_HOME=`cygpath "$JAVA_HOME"`
fi
- JAVA="$JAVA_HOME/bin/java"
+
+ if [ -e "$JAVA_HOME/jre/bin/java" ]; then
+ JAVA="$JAVA_HOME/jre/bin/java"
+ else
+ JAVA="$JAVA_HOME/bin/java"
+ fi
+
else
# last ditch -- look for java on the path
JAVA=`type -P java`

0 comments on commit 32fbf59

Please sign in to comment.