-1
I need to configure the JDK path in Android Studio via terminal without root access to a script. The computer has JDK/JRE 7, I tried to change the value of some variables: PATH, JAVA_HOME, JDK_HOME, STUDIO_JDK, ... .
On the terminal jdk 8 works by changing the value of the PATH, but when I open Android Studio it only recognizes the JRE.
Graphically via Project Structure I can change the JDK, but I need it via CLI. Does anyone know?
As far as I know when changes the PATH by the terminal, it is usually temporary, the PATH is changed only to that window/ instance of the terminal, so do not effect Android Studio. To be permanent I find it kind of hard without root.
– Neuber Oliveira
The PATH changed this way is temporary, but this has no relation in the influence with Android Studio, because what counts is how it is time and the idea of the script is always change before opening.
– WisON