When the class is declared inside of a bundle which include com.acme.example, then you should use the total classname like This solution is for rescuing newbie Java programmers from your stress because of a typical slip-up. I like to recommend you browse the acknowledged response for more in depth knowledge https://brazilianwax99630.tribunablog.com/the-fact-about-ups-uninterruptible-power-supply-that-no-one-is-suggesting-48147576