Java Java Objects Creating the MVP Getting Started

Tevž Ivanjko
Tevž Ivanjko
1,506 Points

When i try to run Hangman in java i get an error: Could not find or load main class Hangman. Anyone know the solution?

I think i do the comands right because i did them a multiple times just to check. I just don't know what i do wrong i had it in the previous workspace as well but i thought it was just a bug on that one.

Monde Ngalonkulu
Monde Ngalonkulu
4,779 Points

Can we see your code? And what's your class name?

Things to check are:

  1. That you class definition is public public class Hangman
  2. That its filename is
  3. And your main method signature is public static public static void main(String[] args)