I'm trying to make use of the firebase emulators, however after trying to start it (using "firebase emulators:start") I always get:
i emulators: Starting emulators: auth, functions, firestore, hosting
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, pubsub
✔ functions: Using node@10 from host.
i firestore: Firestore Emulator logging to firestore-debug.log
⚠ firestore: Fatal error occurred:
Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/,
stopping all running emulators
i functions: Stopping Functions Emulator
i firestore: Stopping Firestore Emulator
⚠ firestore: Error stopping Firestore Emulator
i hub: Stopping emulator hub
As I get no further error information I can't conclude what's wrong.
I have installed OpenJDK. $java --version gives the following result:
openjdk 15.0.1 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+0-snap)
OpenJDK 64-Bit Server VM (build 15.0.1+0-snap, mixed mode, sharing)
I'm using the as of today latest firebase-tool 8.19.0 and Ubuntu 18.04.5 LTS.
My JAVA_HOME is set using:
. $(openjdk)
I assume it's some missing environment variables but who knows. Any ideas what's wrong?