Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators

I have version 11.0.1 of firebase installed on my Windows 11 machine. When I run the firebase emulators, it crashes with this message:

$ firebase emulators:start

!! emulators: firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators. i emulators: Shutting down emulators.

Error: firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators.

I try to update my Java but it says I have the latest version:

enter image description here

I check what version I have and it says version 8... though I need 11? I'm confused:

enter image description here

I try checking the version in the CLI and I get even more confused:

$ java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

My questions are:

  1. How can I get my firebase emulators to run again?
  2. What version of Java do I have? 11? 8? 1.8?
  3. How can I upgrade to the latest version of Java?
like image 679
AskYous Avatar asked Sep 10 '25 17:09

AskYous


1 Answers

I just had the same error and just went through the all version 8 vs. version 11, etc. but now I get it.

firebase-tools is referring to the version of the JDK installed, not the version of Java runtime installed.

The latest JDK from Oracle can be downloaded from https://www.oracle.com/java/technologies/downloads/#jdk18-mac with the latest version being 18.

The Java runtime for Mac latest version is indeed 8, but again that's not what firebase tools is looking for

like image 96
Ron Srebro Avatar answered Sep 12 '25 07:09

Ron Srebro