Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is a library wrapper module and how do I use it?

library module wrapper
0
Posted

What is a library wrapper module and how do I use it?

0

If your module uses some external library, you will probably use a wrapper module to make classes from that library available to your module at runtime. A wrapper module is a module that contains no code; really the only significant thing about it is its manifest, which does two significant things, in addition to the standard module unique ID/version/etc.: • Has a Class-Path entry for one or more JARs, conventionally in the subdirectory ext/ of the directory where the module is. • Declares OpenIDE-Module-Public-Packages followed by a list of the packages from the library that other modules should be able to use. You can use File > New Project > NetBeans Modules > Library Wrapper Module to make a library wrapper. So a wrapper module acts as a proxy to turn a library into a NB module. Since you can’t modify the NetBeans classpath directly (DevFaqNetBeansClasspath), nor would you want to, this is the way you let your code use third-party libraries. It serves the same function that running

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123