Reflection Java Book

static Package[] getPackages()
Get all the packages currently known for the caller's ClassLoader instance