Question: 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](https://i.stack.imgur.com/d4p0p.png)](https://i.stack.imgur.com/d4p0p.png)

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

[![enter image description here](https://i.stack.imgur.com/v5WWN.png)](https://i.stack.imgur.com/v5WWN.png)

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?

Answer: 
*For future visitors*

If you're using older version of the `firebase-tools`(<11.), you will get some logs/warning like the following when you run the Firebase local emulator:

```
emulators: Support for Java version <= 10 will be dropped soon in firebase-tools@11. 
Please upgrade to Java version 11 or above to continue using the emulators.

```

But you have this in your log:

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

```

It means that you have `firebase-tools>=11.` and you need to install the java version 11.
In my case I preferred to downgrade my `firebase-tools`.

Downgrade `firebase-tools`
--------------------------

[Here](https://www.npmjs.com/package/firebase-tools) you can find the npm page and learn about the package and the versions.

The latest version for `10`, is [v10.9.2](https://www.npmjs.com/package/firebase-tools/v/10.9.2).

First you need to remove the current installed version of `firebase-tools`:

```bash
npm uninstall -g firebase-tools  

```

Then you can install the version you want:

```bash
npm i -g firebase-tools@10.9.2 

```

And there other way is to upgrade your java version to >=11 and use the latest version of `firebase-tools`.
The command to deterine installed JDK is:

javac -version

(while java -version if for Java Runtime version)

I had the same issue on Windows and upgrading Java through Java updater or dowloading JDK from Oracle didn't help (propably it could).
On the other hand Firebase installation doc refers to Open JDK:
<https://firebase.google.com/docs/emulator-suite/install_and_configure>

So I uninstalled all "commercial" Java and downloaded:
<https://openjdk.org/install/>

Open JDK needs only unpacking and setting JAVA\_HOME and PATH system variables:
JAVA\_HOME and PATH
<https://docs.plm.automation.siemens.com/content/polarion/19.1/help/en_US/polarion_windows_installation/before_installation/install_openjdk_11.html>

There is no installation and messing with host system files, etc.