I'm pretty new to java development. I used to program in the Processing3 IDE but now I am trying to switch to IntelliJ IDEA. All tutorials (https://www.youtube.com/watch?v=_h2GZgnPcnM) import it so I am trying to import processing.core.PApplet too. I also added the core.jar to the Libraries at the Project Structure Settings.
When I import the core but don't extend it (whatever this means) to the Main class I don't get any errors. After extending it to Main class I get the error.
import processing.core.PApplet;
public class Main extends PApplet{
public static void main(String[] args) {
//PApplet.main("Main");
}
}
I expect it to run properly because I followed the instructions given in the tutorial. The error message is:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at processing.core.PApplet.<clinit>(PApplet.java:122)
I hope you can tell me what the error message means...
Thanks