I am trying to setup cordova for running cordova-android9.0 My problem is that then I downgraded my java version it wont longer work
I downloaded java 8 and set my environmentvariables to:
User variable Path to:
C:\Program Files\Java\jdk1.8.0_351\bin
and gradle to this version:
C:\Gradle\gradle-4.10.3\bin
(recommended by cordova)
System variables:
JAVA_HOME C:\Program Files\Java\jdk1.8.0_351
and Path the same as on user vaiables
But when I am running java -version
in terminal it gives me errormessage:
Error occurred during initialization of VM
Failed setting boot class path.
I cannot figure out why java is not responding correctly
CodePudding user response:
Not sure what could be breaking, but you can try clean installing java from your system once. Uninstall all java versions -> reboot pc -> re-install correct JDK 8 from here: https://www.oracle.com/in/java/technologies/javase/javase8-archive-downloads.html and afterwards try to set the JAVA_HOME if not set properly.
CodePudding user response:
Check if this is the correct path of your jdk-
C:\Program Files\Java\jdk1.8.0_351\bin
Sometimes Its
C:\Program Files(x86)\Java\jdk1.8.0_351\bin