|
Java™ by example!
|
|
|
How do I get a list of all packages loaded by the current classloader?
To get the list of known packages loaded by the current classloader, call the method Package.getPackages(). Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|