When the class is declared in the package deal such as com.acme.instance, Then you really need to use the complete classname like This answer is for rescuing newbie Java programmers from the disappointment caused by a typical oversight. I like to recommend you read the accepted answer for more in https://spencerrvxww.ka-blogs.com/87099594/the-greatest-guide-to-uninterruptible-power-supply-cyberpower