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.

Bug 83467 - Provide more information for class loading errors from palette items
Summary: Provide more information for class loading errors from palette items
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 12:25 UTC by Jana Maleckova
Modified: 2012-11-09 17:43 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2006-08-25 12:25:46 UTC
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."
Comment 1 Tomas Pavek 2012-06-06 16:39:27 UTC
See also http://wiki.netbeans.org/FaqFormCustomComponentTroubles.

Related: bug 121616.
Comment 2 Tomas Pavek 2012-08-17 16:35:13 UTC
See also bug 154197.
Comment 3 Tomas Pavek 2012-11-09 17:43:26 UTC
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