Prime Directive Error

https://www.codecademy.com/courses/learn-java/projects/java-prime-directive
Hello,
I am currently working on the prime directive project and I cannot seem to get past this error. When I execute this code:

// Import statement:
import java.util.ArrayList;
class PrimeDirective {
  
  // Add your methods here:
  public boolean isPrime(int number) {
    if (number == 2) {
      return true;
    } else if (number < 2) {
      return false;
    }
    //check for divisiblity
    for(int i = 2; i <= number; i++) {
      if (number % i == 0){
        return false;
      } 
        
      } return true;
     }
  }
  
  public static void main(String[] args) {

    PrimeDirective pd = new PrimeDirective();
    int[] numbers = {6, 29, 28, 33, 11, 100, 101, 43, 89};
    System.out.println(pd.isPrime(7));

  }  

}

and then I run the code in bash I get the error: “error: Class names, ‘PrimeDirective’, are only accepted if annotation processing is explicitly requested”

I don’t know if I’m doing something wrong but that is the only error I am receiving.

All help appreiciated :slightly_smiling_face:

Where are you running the code?

If I run your code in the project environment, I get no output - no errors, no anything…