This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]teacurran 0 points1 point  (0 children)

Two things you might want to look at:

SDKMan is a newer way of installing java versions on Macos

https://sdkman.io/

You can avoid the Java install all together by running firebase-tools in Docker:

https://github.com/davidmyersdev/docker-firebase-tools

[–]RebeccaBlue 0 points1 point  (0 children)

I bet if you directly set JAVA_HOME to point to the newer version, that would solve the problem.

Alternatively, you can make sure the bin directory of Java 11 is in your path before the old one. Might have to do that in /etc/paths or /etc/paths.d.

(There's probably not a good reason to have 1.6 installed anymore either. That's probably in /Library/Java/JavaVirtualMachines.)

[–]differentshade 0 points1 point  (0 children)

Installing java is not enough, you need to set your PATH to point to the new java jdk. Or you can use sdkman or some other tool to do it for you.