r/learnjava • • Jan 14 '20

Main Class

I am just starting to learn Java. I am using IntelliJ on mac. I cannot even run hello world. It says could not find or load main class. I can't find what the main class is or how to add it. I have been trying to fix the run configuration for an hour. Please help me before I quit CS after 2 weeks

1 Upvotes

9 comments sorted by

View all comments

1

u/DammitJoe00 Jan 14 '20

I dont use intelija but on elicipse you have to check the "public static void main (String args[])" box to create your main class. You can try adding that line of code or creating a new main class.

Sorry if that doesnt help, I'm also a beginner.