Skip to main content

Posts

Showing posts from March, 2013

Error Class names are only accepted if annotation processing is explicitly requested

Do you get the following error? Class names, 'Hello', are only accepted if annotation processing is explicitly requested 1 error In case you got this error, then you forget to add .java to the file name when you compile it So when you want to compile a file using cmd console window write the filename.java extension Example: Javac Hello.java If you write it in this way the error will go away. So don’t forget to include suffix with your file name during compilation.

Hide your file by two ways

Do you want to hide your file or image or video or anything and you don’t want anybody to see it. Then there are two ways to do that. The simple way: Right click on your file > Properties > hit Hide > press Ok choose properties click on Hidden then OK The Dos way: Open cmd from start menu and type cmd Then type the following command and don't forget to leave a space between attrib and +S and +H and the path: attrib +S +H [the path to your file including file name and its extension] Note: attrib display or change in a file. Type cmd  in the search bar then open cmd Example: attrib +S +H C:\Users\Nicole\Desktop\Songs.txt In this way you hide your file, and make it a system file in order to disable users from seeing it with the normal show/hide way. What is the System file? It is a computer file important to the operating system with the system attribute turned on and Windows computers are configured by default not t