Login or register    

Class names are only accepted if annotation processing is explicitly requested

Problem

When attempting to compile I get the following error:

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

Solution

You forgot the .java extension on the filename, please type:

javac myfirstjavaprog.java

Comments

Leave a comment

Please login or register to leave a comment!