How do i get all the java packages in the classpath and get all the classes contained in the package at runtime. I need this because i have designed a small class browser and want to add a graphical display of packages in the classpath. The method in the java.lang.Package class doesn’t give all the packages in the classpath.