Java beginner here, need help please

I started Mosh beginner course and downloaded Java, jdk 12 and Intellij like he suggested.
When I start a new project, it doesn’t let me create project from template and put it in a package.
and when I try to run in terminal, I get this message -

Please help