cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sumitpendharkar
Level 4

putClass does not add the specified class to the archive

I have a custom bean which requires another class (a TimerTask class) for the progress bar implementation. I am using the following code snippet to add the class to the install archive --

support.putClass(com.ibm.ahx.config.ProgressBarTimer.class.getName());
support.putClass("com.ibm.ahx.config.ProgressBarTimer");

I dont get any errors at build time, but at run time, I get a

java.lang.NoClassDefFoundError: com.ibm.ahx.config.ProgressBarTimer

and my wizard bean can be loaded. Any ideas as to why the putClass does not work? I have also tried using putArchive, but even that doesnt work. Thx.
Labels (1)
0 Kudos

(1) Reply
enanrum
Level 9

0 Kudos