javac error: Class names are only accepted if annotation processing is explicitly requested

后端 未结 12 819
余生分开走
余生分开走 2020-11-27 04:37

I get this error when I compile my java program:

error: Class names, \'EnumDevices\', are only accepted if annotation 
processing is explicitly requested
1          


        
12条回答
  •  长情又很酷
    2020-11-27 05:01

    Using javac ClassName.java to compile the program, then use java ClassName to execute the compiled code. You can't mix javac with the ClassName only (without the java extension).

提交回复
热议问题