The recommended way (link) is to set the STUDIO_JDK
environment variable before launching.
export STUDIO_JDK=/usr/lib/jvm/jdk1.8.0_25-1.8.0_25-fcs.x86_64
./studio.sh
replacing /usr/lib/jvm/jdk1.8.0_25-1.8.0_25-fcs.x86_64
with the path of your jdk installation
Reference: Configuring Android Studio: IDE & VM Options, JDK, etc - Android Tools Project Site