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/keyserS13 Jan 14 '20

If have some code add edit you post and add the code. Otherwise, did you make sure your class is in the src folder?

1

u/[deleted] Jan 14 '20

What is an src folder?

1

u/keyserS13 Jan 14 '20

Its the folder that contains all the contents of your intellij project (including the main class). It should be in the leftmost side of your window. If you expand everything you should see it