Hi there,
I am just starting with Java as a complete newbie. I try to work with a udemy class but while theirs works, I fail at the very first hello-world-application, which is driving me nuts. I followed the instructions as best I could (they work on a windows, I work on mac and their intelliJ looks slightly different) and I have deleted the whole project and started fresh 4x times now. Everything is formated in utf-8, I manually checked, but I keep getting this error while compiling (see screenshot).
My Application.java contains this code, nothing else:
public static void main(String[] args) {
System.out.println("Hallo Welt");
}
}````
When creating this project under "new project" I selected the language-option Java (obvi), the build system maven (bc it was suggested in the video), and JDK 17 (Oracle OpenJDK version 17.0.7). I unchecked the option for sample code.
Unfortunately I am so new to this, I don't even know where to start looking for the mistake. I have chatted with Chat gpt until it ran out of ideas. :/
Does anyone have an idea what I could do or where I made the mistake?