Skip to content

Commit

Permalink
WI-28597 Bundle OracleJDK 7 on Linux
Browse files Browse the repository at this point in the history
RUBY-17053 RM 8.0 does not start on Ubuntu 14.04 x64
  • Loading branch information
vorlovjb committed Aug 28, 2015
1 parent 42cef13 commit 006f344
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/scripts/unix/idea.sh
Expand Up @@ -107,13 +107,18 @@ else
fi
fi

if [ -z "$JDK" ]; then
JAVA_BIN="$JDK/bin/java"
if [ ! -x "$JAVA_BIN" ]; then
JAVA_BIN="$JDK/jre/bin/java"
fi

if [ -z "$JDK" ] || [ ! -x "$JAVA_BIN" ]; then
message "No JDK found. Please validate either @@product_uc@@_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation."
exit 1
fi

VERSION_LOG=`"$MKTEMP" -t java.version.log.XXXXXX`
"$JDK/jre/bin/java" -version 2> "$VERSION_LOG"
"$JAVA_BIN" -version 2> "$VERSION_LOG"
"$GREP" "64-Bit|x86_64|amd64" "$VERSION_LOG" > /dev/null
BITS=$?
"$RM" -f "$VERSION_LOG"
Expand Down Expand Up @@ -175,7 +180,7 @@ fi
# ---------------------------------------------------------------------
# Run the IDE.
# ---------------------------------------------------------------------
LD_LIBRARY_PATH="$IDE_BIN_HOME:$LD_LIBRARY_PATH" "$JDK/jre/bin/java" \
LD_LIBRARY_PATH="$IDE_BIN_HOME:$LD_LIBRARY_PATH" "$JAVA_BIN" \
$AGENT \
"-Xbootclasspath/a:$IDE_HOME/lib/boot.jar" \
-classpath "$CLASSPATH" \
Expand Down

0 comments on commit 006f344

Please sign in to comment.