JavaHT GetPackagesOfAJar

How do I get the packages contained in a jar/library/dependency?

If you want to display it as a Node you can use:

org.netbeans.spi.java.project.support.ui.PackageView.createPackageView().
If you need just a list of packages it can be obtained by
ClassIndex.getPackageNames()
for jars which were scanned by indexing.

-- provided by Tomas Zezula

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo