We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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() {
}
}
Answers
Update: I figured it out. I also needed to import the jogl-all and gluegen-rt.jars
@oseph Thxs for sharing your solution.
Kf