This is the code I'm unable to run in IntelliJ:
package hjemmestud.grafikk;
public class Grafikk extends EasyGraphics {
public static void main(String[] args) {
launch(args);
}
public void run() {
this.makeWindow("Grafikk", 300, 300);
this.drawCircle(150, 70, 60);
this.drawCircle(150, 190, 60);
}
}
It's supposed to create two circles on top of each other in a small window, like this: Program Example
Current file structure, IntelliJ Project folder: File Structure
Website of downloadable JAR file (second file): https://dbsys.info/programmering/easygraphics/nedlasting.html
I've successfully run the program using just Windows CMD with a different folder structure: File Structure using CMD (before compiling) I did this by running these two lines of code in CMD:
javac -classpath .;.\easygraphics.jar Grafikk.java
java -cp .;.\easygraphics.jar Grafikk
However, when I transfer the files to IntelliJ, it doesn't seem to work. I've tried having the JAR file on the same level as the Grafikk.java class, on the same level as hjemmestud.grafikk package and in the same level as the src folder, both just the JAR file itself and in a lib folder, but none of it has worked.
I've also of course added the path to the JAR file in the external libraries by modifying the Project Structure, in the Libraries and Modules for each time, but I still get errors up saying it cannot resolve the symbol 'EasyGraphics'.
I've also tried reloading the project from disk and rebuilding the project, aswell as editing the configurations of the class file, without any luck.