Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

List Down the available packages  RSS feed

 
Prabodha Herath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to list down all the standard java package names like classes disassembled with "javap"?
 
Nicholas Carrier
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you not use the javadocs for the JDK that you are using (it has all the variables/methods and definitions), or do you need it for something else?
 
Prabodha Herath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnkx Nicholas but I just wanna know if I can programmatically get the list of all available packages and display the list in listbox..
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in the JRE that does this, but you could write a program that takes the CLASSPATH and iterates through all directories and jar files it contains.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!