• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get list of all classes present in any package?  RSS feed

 
sneha ulhe
Ranch Hand
Posts: 52
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get list of all classes present in any package when we are running program from command prompt?is there any special command?
 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sneha ulhe wrote:How to get list of all classes present in any package when we are running program from command prompt?is there any special command?


Try javac -help.
 
Nikhil Sagar
Ranch Hand
Posts: 216
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sneha ulhe wrote:How to get list of all classes present in any package when we are running program from command prompt?is there any special command?


try
J:\com\mypack>dir *.class
 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nikhil Sagar wrote:
sneha ulhe wrote:How to get list of all classes present in any package when we are running program from command prompt?is there any special command?


try
J:\com\mypack>dir *.class


Yes, that is MS-DOS command.
 
sneha ulhe
Ranch Hand
Posts: 52
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks....
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if interested in the contents of a jar file, you can use

# List table of contents of jar file
jar t ...

http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/jar.html

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!