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 java.net.URLClassLoader.findClass(URLClassLoader.java:381)

My simple code:

import processing.core.*;

public class App_02 extends PApplet {
            
  public static void main(String[] args) { 
    PApplet.main("App_02");
  }

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

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

  public void draw() {
  }

}    
Tagged:

Answers

Sign In or Register to comment.