Whenever i load NetBeans 6.9 (similar errors happend on previous versions also) then i let netbeans finish scanning my projects and once it's done i try to run a profile which points to a class with a main method, Netbeans always says main class not found, even though it shows up in the list of classes once the error pops up.
If i select the class from the list and hit ok, the same error happens again (main class not found).
If i compile the main class, i still get the same problem
I think i still get the same issue if i rebuild the entire project. -> when i compile the main project it compiles all projects even those that are closed. What is going on?
The only way i have found so far to work around this is to close the project and re-open it and wait for the project scan to finish again.
This is incredibly annoying and i would like to ask the community if anybody knows a fix for this.
Another strange thing i noticed is that my project seems to be building into the wrong jar name (though if i do the above step of closing and reopening the project it still works). I have two projects with different names, and even after having closed the other project and restarted netbeans a lot of times, when i build the first project it uses the jar name for the second project that has been closed for a long time.