Creating a Processing sketch without PDE

I’m already a Java developer, and wanted to play around with Processing.

I’d like to import it in a Maven based project, but I’m running into some problems.

The latest issue when I use P2D:

2021-07-22 12:59:04.553 java[11110:521852] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

My pom.xml contains:

    <dependency>
      <groupId>org.processing</groupId>
      <artifactId>core</artifactId>
      <version>3.3.7</version>
    </dependency>
    <dependency>
      <groupId>org.jogamp.gluegen</groupId>
      <artifactId>gluegen-rt-main</artifactId>
      <version>2.3.2</version>
    </dependency>
    <dependency>
      <groupId>org.jogamp.jogl</groupId>
      <artifactId>jogl-all-main</artifactId>
      <version>2.3.2</version>
    </dependency>

Well, I think P2D is just broken on MacOS. Doesn’t even work in PDE. Using the default renderer works though.

Hello,

I came across this Issue:
Big Sur seems to have broken P3D & P2D renderers #6121
https://github.com/processing/processing/issues/6121

:)