Error: Could not find or load main class Autocomplete - when using IntelliJ 2024.1.1


I am new to learning coding and automation and while following a 2020 LinkedIn course I get the above error when I open the example folder in the new IntelliJ 2024 version. (I have corrected the first issue 'Java file is located outside of the module source root, so it won't be compiled')


Hello, What's the project type, is it Java(Maven, Gradle) or JavaScript, Go, etc.? Can you share some screenshots of the issue?