Here is the Java error message box

A couple of interesting things:
1) Wasn't that stupid of me to mention a Java error when the Error box reported a JavaScript error?
2) But so weird, I found that my machine did not have java installed, and I then installed package default-jre using
$ sudo apt install default-jre
and the errors went away. I am more clever than I realized!!
Is there a way that the Serial Terminal could tell the user to install default-jre when the error happens?
Thanks.
Burt Silverman