I deleted my class files accidentally (the whole contents of the bin folder in fact, when trying to configure a git repository).
Now, when I run my program on Eclipse, I get an error:
Error: Could not find or load main class BmrMain", and no .class files are generated in the bin folder.
I can easily rebuild the project, but "Build Automatically" is enabled, so my question is why does Eclipse not rebuild the class files when I run the application? Why do I have to clean then rebuild for the class files to be recreated?
Also, when moving my .src files to a seperate folder to test, I compiled using the command prompt. It worked, but when compiling (javac BmrMain.java
), the following error popped up:
Note: BmrMain.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Although the program runs correctly when typing java BmrMain
. What do these errors mean? I do have some warnings in Eclipse, but they don't seem a big deal to me and consequently, I left them: