error: Class names are only accepted if annotation processing is explicitly requested SOLVED in Java

error: Class names are only accepted if annotation processing is explicitly requested SOLVED in Java


error: Class names are only accepted if annotation processing is explicitly requested SOLVED in Java

How to solve error: Class names are only accepted if annotation processing is explicitly requested in java is shown


Content

0.48 -> hey everyone in this video I will be showing  you how to solve the error class names are  
5.76 -> only accepted if annotation processing is  explicitly requested so let's get started  
10.2 -> so I think there is only one reason why you  are getting this error the reason is because  
13.86 -> you have forgotten to give the extension dot  java after you have specified your file name  
18.66 -> so here you can see I have just specified my  javac and my file name which is sample class  
24.48 -> over here here you can see but I've forgotten  to give the dot java extension so yeah I will  
29.16 -> just type dot java over here and another thing  that you need to focus on is that the dot java  
35.46 -> the j in dot java should be small letter it  shouldn't be a capital letter so in case if  
40.86 -> you are getting this error so just try adding  this dot java thing and also check your file  
45.78 -> name or class name so your class name and the  file name should be also be same and also check  
50.82 -> the spelling or other things over here so  if I just now hit enter so this time you  
55.62 -> can see my program has successfully compiled  and to run it I will just go with java yeah  
62.04 -> so here you can see I have not got any errors  now so this is how you solve it just try adding  
66.96 -> the extension and check the spelling of your file  name alright so I hope you have found this video  
71.34 -> useful mine is a programming Channel I also done  many other videos in Java C C plus plus node.js  
76.32 -> react JS mongodb MySQL so do check other videos  of my channel subscribe me thanks for watching

Source: https://www.youtube.com/watch?v=ebekt8kMQjY