Skip to main content

Adding new classes

5 replies [Last post]
jinwoolim
Offline
Joined: 2010-08-10

Hi everyone,

I would like to add some new classes to OCAP RI, for example aaa.bbb.Channel and to use it in my Xlet.

I succeeded adding the new classes in build time but NoClassDefFoundError occurs when the Xlet referes to the new classes in run time.

Is there anybody to know the solution?
Please help me

Thanks
Jinwoo Lim

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cpratt
Offline
Joined: 2008-12-18

I believe you also need to add the class to

$OCAPROOT/java/src/base/org/cablelabs/impl/manager/application/api-pkgs.txt

in order for the application classloader to find it.

Of course, any xlet that depends upon your added class(es) won't work on other OCAP-compliant devices.

cp

jinwoolim
Offline
Joined: 2010-08-10

Thanks cpratt,

My problem has been resolved.
Modifying api-pkgs.txt and I had to rebuild RI sources.

Thank you again for your help

jinwoolim
Offline
Joined: 2010-08-10

For more information, the new class(aaa.bbb.Channel) I made is included in ocap-classes.jar located in /syscwd/sys directory

wmunsil
Offline
Joined: 2009-07-05

If you really need to do that... any class you add has to be named in the appropriate *.filelist file (probably base.filelist) in the ri/RI_Stack/java directory, otherwise it is not included in the build.

jinwoolim
Offline
Joined: 2010-08-10

Thank you for your reply.

I did like your mention.
I modified base.filelist that the new class could be included.

I made build successful.