Hi everyone,
javac -version: javac 17.0.2
I have two Java folders:
1- C: \ Program Files \ Java \ jdk-17.0.2
2- C: \ Program Files (x86) \ Java \ jre1.8.0_321
When I type the command “ionic capacitor run android” I get the following error:
“Supplied javaHome must be a valid directory. You supplied: C: \ Program Files (x86) \ Java \ jre1.8.0_311”
the jre1.8.0_311 folder doesn’t even exist.
In cmd if I type:
% JAVA_HOME% → C: \ Program Files (x86) \ Java \ jre1.8.0_321
In the PATH variable I added% JAVA_HOME% \ bin
1 post - 1 participant