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 247879 - Error after change the path of a bean component
Summary: Error after change the path of a bean component
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-12 15:27 UTC by FiruzzZ
Modified: 2015-02-20 12:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (135.42 KB, text/plain)
2014-10-12 15:27 UTC, FiruzzZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2014-10-12 15:27:14 UTC
I added the JCalendar bean component to Palette  Swing, but recently I removed the path where was the .jar  "D:\libs\JCalendar.jar" and now it's giving me an error one every Form that uses this Component, I tried to re- add the Bean doing the same step > Tools > Palette > Add jar, but after finish the process the error persist.
I also tried to reset Palette, something that i didn't want to do because I have other beans (SwingX, Barcodebean ...), didn't work neither.
Is it any config file where I can edit and correct the path of the JCalendar?
Comment 1 FiruzzZ 2014-10-12 15:27:20 UTC
Created attachment 149853 [details]
IDE log
Comment 2 Tomas Pavek 2014-10-23 13:40:22 UTC
If the forms complain about the missing classes, it has nothing to do with the palette. You need the JAR on the classpath of the project (among the project libraries). So you need to fix the project configuration if you moved the JAR elsewhere. Note the JAR known to the palette is added to the project when a component is added from the palette to the form. But since then it is the project classpath that matters for the form to be able to load components from that JAR.
Comment 3 FiruzzZ 2014-10-23 14:22:40 UTC
It is not about the project, the project contains the JAR needed, but the Design View of the IDE is what is not finding the JAR, I know this because the error thrown by the IDE is pointing to a path (D:\libs\...") where the JAR USED TO BE (when the beans components were loaded YEARS ago), while the project uses a custom library "JCalendar1.4" (which path is "C:\libs\JCalendar.jar")and many other projects also does it.
Comment 4 Tomas Pavek 2014-10-23 15:28:11 UTC
The exceptions in the attached log file:
java.lang.ClassNotFoundException: com.toedter.calendar.JDateChooser
mean that this class could not be found on the project classpath when the form was loaded (for the Design view).

As for "the error thrown by the IDE is pointing to a path (D:\libs\..." - I don't see anything like this in the log file. What error do you actually mean? The above exception is a typical example of missing JAR in project.