This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Description: 1. start IDE with jdk 1.5 2. create project with JPanel and JFrame. 3. Insert some swing in JPanel and compile project 4. Set jdk 1.6 platform in IDE 5. Change project from 1.5 to 1.6 jdk and compile the project 6. Through palette manager (add from project), add JPanel into Pallete 7. open JFrame from this project and try to insert JPanel from Pallete into it Then a message occures but it's not clear and user doesn't know what's the problem and what is the reason of no possibility to add this java bean in JFrame. Now IDE announce: "Annotation: Cannot load component class nn.testicek from project: E:\testing_NB\integration\JavaApplication3. The class must be compiled and must be on the classpath of the project this form belongs to."
See also http://wiki.netbeans.org/FaqFormCustomComponentTroubles. Related: bug 121616.
See also bug 154197.
The error messages from custom components when adding from palette were improved in 7.3. It's also possible to show the exception that caused the failure. http://hg.netbeans.org/jet-main/rev/b23836f97c6f