bdeeming
2010-08-13 06:44:53 UTC
I've had this same problem at least twice now when using NetBeans 6.9. To fix it this most recent time the only solution was to right click the .java file in the project browser and Refactor>rename it to something different, the rename it again back to its original name.
Note that it did not only effect the main class for me this most recent time. After doing the above for my main class, i then ran the project and it loaded that class, plus one other class fine, but not a third. I then did the rename drill for this class file as well and all was well.
Hope this is helpful to someone, or anyone who is trying to identify where exactly the bug in NetBeans lies.
Ben
Note that it did not only effect the main class for me this most recent time. After doing the above for my main class, i then ran the project and it loaded that class, plus one other class fine, but not a third. I then did the rename drill for this class file as well and all was well.
Hope this is helpful to someone, or anyone who is trying to identify where exactly the bug in NetBeans lies.
Ben