Viewing contents of a .jar file

后端 未结 30 1044
一向
一向 2020-12-02 03:54

What would be the easiest way to view classes, methods, properties, etc. inside a jar file? I\'m looking for something equivalent to the very useful Lutz Roeder .NET Ref

30条回答
  •  庸人自扰
    2020-12-02 04:44

    If you are in windows and using powershell and you are looking for a file in a jar you can do:

    jar -tf .\[JAR_NAME] | where {$_ -match "[FILENAME]"}
    

提交回复
热议问题