P3D not working in Mojave

I’ve seen some posts on this, but can’t find a solution. P3d gives the following error on all my lab computers running Mojave (25 computers). This happens even with only the following code: (the problem goes away if I get rid of P3D).

void setup(){
size (200,200, P3D);
}

0   AppKit                              0x00007fff3453c607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
1   AppKit                              0x00007fff345399f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
2   AppKit                              0x00007fff3453942a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
3   libnativewindow_macosx.jnilib       0x0000000133a503fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4   ???                                 0x000000011dd13a88 0x0 + 4795218568

)