Viewing contents of a .jar file

后端 未结 30 1025
一向
一向 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:34

    In Eclipse 3.4 do

    1. Drag the jar file in question into a Java project. A copy of the jar file appears.
    2. Right click on the jar file, and choose "Build Path" -> "Add to Build Path".
    3. Jar file is moved to "Referenced Libraries" node, where it can be opened and navigated in the Project Explorer pane.

    If seeing source code too is an issue, open a new question.

    For navigation on Jar-file level (as a zip file) I use 7zip which works very well, and allows seeing and editing entries which is great for trouble shooting.

提交回复
热议问题