Why can't I use run java

Why can’t I use run java in an empty activity?