Hi,
I have installed Android Studio (via rpm) as well as JDK. I know the jdk path by running locate bin/java. What I don't know is where in the script I should put the JDK path eg
---------------------------------------------------------------------
Locate a JDK installation directory which will be used to run the IDE.
Try (in order): STUDIO_JDK, JDK_HOME, JAVA_HOME, "java" in PATH.
---------------------------------------------------------------------
if [ -n "$STUDIO_JDK" -a -x "$STUDIO_JDK/bin/java" ]; then
JDK="$STUDIO_JDK"
elif [ -n "$JDK_HOME" -a -x "$JDK_HOME/bin/java" ]; then
JDK="$JDK_HOME"
elif [ -n "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then
JDK="$JAVA_HOME.
I'm assuming that after the second JAVA_HOME I put the path /usr/java/jdk1.8.0_05/ ie "JAVA_HOME/usr/java/jdk1.8.0_05/"
Aplogies for this question as the answer seems blindingly simple (but this newbie can't see it & neither do I seem able to find a sample studio.sh script. Thanks
I have installed Android Studio (via rpm) as well as JDK. I know the jdk path by running locate bin/java. What I don't know is where in the script I should put the JDK path eg
---------------------------------------------------------------------
Locate a JDK installation directory which will be used to run the IDE.
Try (in order): STUDIO_JDK, JDK_HOME, JAVA_HOME, "java" in PATH.
---------------------------------------------------------------------
if [ -n "$STUDIO_JDK" -a -x "$STUDIO_JDK/bin/java" ]; then
JDK="$STUDIO_JDK"
elif [ -n "$JDK_HOME" -a -x "$JDK_HOME/bin/java" ]; then
JDK="$JDK_HOME"
elif [ -n "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then
JDK="$JAVA_HOME.
I'm assuming that after the second JAVA_HOME I put the path /usr/java/jdk1.8.0_05/ ie "JAVA_HOME/usr/java/jdk1.8.0_05/"
Aplogies for this question as the answer seems blindingly simple (but this newbie can't see it & neither do I seem able to find a sample studio.sh script. Thanks
