Re: Android Studio and Java JDK
Hi
I wrote a script to start it and export the path;
Code:
cat ~/bin/android_studio
#!/bin/sh
export JAVA_HOME="/etc/alternatives/java_sdk_openjdk"
cd ~/data/android/android-studio/bin && exec ./studio.sh $*
export JAVA_HOME="/usr/lib64/jvm/jre"
You will need to adjust the path to studio.sh.
I also created a desktop (aka menu/shortcut item;
Code:
cat .local/share/applications/android.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Android Studio
Comment=Android Studio integration environment tool
Version=1.0
Icon=~/.icons/studio.png
Exec=~/bin/android_studio
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Development;IDE;
Again, adjust the Icon path for your setup, you may need to use the full path in Icon and Exec.
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!
Bookmarks