I am new to coding and am learning Java. I wasn't much of a tech guy before all of this so the new path is giving me some trouble. I have installed IntelliJ, Java and its SDK on my Mac and am getting the follow error when attempting to run some practice script. Any help would be appreciated.
You code won't compile because the return statement has error in it. Also if you want to execute code you need to have an entry point, which is main function declared as public static void main(String... arg).
Also, I am not sure why you got the error message. You need to set you 'Run/Debug configuration' settings in IntellijIDEA.
I am afraid that pictures can be difficult to read; I can barely see your error message. Please use copy'n'paste instead.
posted 1 year ago
Clicking on the picture will make it full screen.
I just changed my code in IntelliJ to the same code that is working on my Windows computer and am still getting the no such file or directory error. I fix what was mentioned above and commented out everything to see if just a System.out.println would work but it is the same error.
Your mother was a hamster and your father was a tiny ad:
create, convert, edit or print DOC and DOCX in Java