why is this happening? i didnt do anything, i only just add a menu bar item and attach an event but this happen. then i undo adding of that menu item, but it still exist.
this error happen in my last project in netbeans 6.9, then i make another project and transfer some components and it works, while i was continuing to add the said
menu item, that error appear.
db there is a package, and MainClass is my main.
Caused by: java.lang.ClassNotFoundException: db.MainClass
at java.security.AccessController.doPrivileged(Native Method)
Could not find the main class: db.MainClass. Program will exit.
Exception in thread "main" Java Result: 1
I don't know about netbeans, but in Eclipse if you build the project it generates all the class files. Perhaps netbeans has something similar to "build" the project?
Joined: Aug 11, 2009
yes it has build and clean and build, when i clean and build, the class are there, but when i run the program using right clicking on the MainClass node > run, the classes disappear in the folder when i look to it, it gave me the same error.