Listing classes in a jar file

前端 未结 5 971
感动是毒
感动是毒 2021-02-14 01:20

How can I dynamically load a jar file and list classes which is in it?

5条回答
  •  温柔的废话
    2021-02-14 02:03

    Viewing the Contents of a JAR File

    For viewing the contents of a JAR file from command prompt use

    jar tf jar-file

    eg:-

    jar tf TicTacToe.jar
    
    
    META-INF/MANIFEST.MF  
    TicTacToe.class  
    audio/  
    audio/beep.au  
    audio/ding.au  
    audio/return.au  
    audio/yahoo1.au  
    audio/yahoo2.au  
    images/  
    images/cross.gif  
    images/not.gif  
    

提交回复
热议问题