making friend with netbeans modules

Most of you who develop NetBeans RCP are using have encountered NoClassDefFound errors. Normally only set the direct dependency to the module/jar and everything works fine (example). This does not always hold:

I encountered the prob when trying to use netbeans.core.window.

problem: public packages

solution: declare a so called implementation dependency as described here.