I am trying to get firebase emulators running on my PC. No problems with functions, hosting, extensions emulators that seem to start by default. But when I enable firestore emulator via "firebase init emulators" selector menu, then running firebase emulators:start, I get "Error: Could not spawn java -version
. Please make sure Java is installed and on your system PATH."
I have tried installing JDK20 https://www.oracle.com/java/technologies/downloads/#jdk20-windows and whatever java thing this is https://www.java.com/en/download/manual.jsp. I also tried dl and extracting the open source version here, https://jdk.java.net/20/. not sure if there's more to installation than extraction?
I also tried the suggestions from these threads
Firestore/Firebase Emulator Not Running - rerunning firebase init, firebase emulators:start:firestore, - lots of permutations on this. Running with firestore both installed and not installed in project. And tried running it from both my functions folder and my root firebase folder (extensions, frontend, functions, firebase.json, firestore.rules)
Java error when trying to run firebase emulators - setting PATH variable to my JDK20 installation, also tried setting PATH to my openJDK20 intallation
I also tried npm install java, before and after installing JDK. That gave me an error: npm ERR! code 1 npm ERR! path C:\Users\Kucha\Desktop\moralisAuthExtension\frontend\node_modules\java npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
any ideas? Thank you!