Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70805

Java.exe path is wrong

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 70805

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>