Use <<JavaGraphics` graphics package from headless Raspberry Pi 3B+?

I log into my new raspberry pi 3B+ remotely via ssh
from my iMac. I have XQuartz running on the iMac.

I’m only interested in running “wolfram” from a terminal remotely.
I’m not interested in Mathematica NoteBooks for now.

I’d like to run graphics.

When I try to load <<JavaGraphics`

I get the following error.

In[7]:= <<JavaGraphics`                                                         
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast