Not sure if this is the best forum to post the query below - if not, mods please feel free to move, thanks.
I'm using a non-JDK library for the first time. It's Apache POI, which I downloaded in JAR form. In NetBeans, I add the JARs I need to 'libraries', and everything works fine. The only thing is that when I 'build' to make a distributable entity, the resulting folder (executable JAR from my source code plus the 'lib' folder containing the required Apache JARs) is very large - over 18 MB - due to the size of the latter.
Zipping it for upload to my website only reduces the size by a couple of MB (not surprising I suppose as the component JARs are themselves a type of zipped entity from what I understand). This is actually just above the allowed size for the free-hosted facility I use, so I have to use Google Drive instead and post a link to the upload there for anyone who wants to download it. In addition, my internet connection can be slow, which adds to the mild misery.
As I'm only using a small number of Apache classes/methods, I'd imagine I would actualy need only a small proportion of the files that are contained in the many subpackages that constitute each of the 7 Apache POI JARs involved. Is there a way to streamline this? I suppose I could download the Apache source code and try to pick that apart to work with only the files I need (and in that case I assume NetBeans would include the Apache code in a single program JAR, which would be nice), but I'd imagine there would be a big network of cross-dependencies among the classes(?) Apologies for the cluelessness of some of the descriptions here - I've led a rather sheltered codewriting life so far!