Error when using P2D in Intellij

I'm (trying) to use Intellij as my IDE, but when I try to declare my sketch as P2D, I get this error:

java.lang.NoClassDefFoundError: com/jogamp/common/type/WriteCloneable at java.lang.ClassLoader.defineClass1(Native Method)

Caused by: java.lang.ClassNotFoundException: com.jogamp.common.type.WriteCloneable at

My simple code:

import processing.core.*;

public class App_02 extends PApplet {
  public static void main(String[] args) { 

  public void settings() {
    size(800, 800, P2D);

  public void setup() {
    rect(width/2 - 50, height/2 - 50, 100,100);

  public void draw() {



Sign In or Register to comment.