Running Processing in Raspi without Desktop environment

This link might be interesting. Otherwise have you considered using a tiling window manager like i3-wm? See Processing in style with Java 11 for how to install processing4 on RaspberryPI.