Generally if it's a third party library (you didn't write it, you can't or don't want to change it), you will want to use a wrapper module. An NBM file (a module packaged for delivery over the net) can contain more than one jar, so all your libraries can be included in a single file that packages your module.

Source: NetBeans FAQ