How to configure environment variables for JDK11 embedded in Android studio

Is there a situation
insert image description here
where if our Android studio has an embedded JDK and we don't want to download more JDKs, how do we start the JDK11 embedded in Android studio?
The first step is to confirm the path of JDK.
1
insert image description here
The second part is to add environment variables
. The following is the operation of configuring environment variables.
After java 1.8, there is no need for the CLASSPATH environment variable.
We only need to configure JAVA_HOME and PATH.
JAVA_HOME C:\AndroidStudio\jre (JDK installation directory)

Add after PATH:
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
insert image description here

Test it:
check the java version in cmd.
insert image description here

Guess you like

Origin blog.csdn.net/L_201607/article/details/125655410