简体   繁体   中英

How to view the contents of jar file in eclipse or jar-file-explorer

I am working on a project where i need to know the contents of jar file included in my web-project. I am using Eclipse juno. However Netbeans provides these features to view the contents of a jar-file. Please suggest me how to achieve this in eclipse.

In the project explorer, you should have something with an icon looking like a pile of book like those:

classpath容器

just expand the one containing your dependencies (probably labelled "Referenced Librairies") and you can browse as usual.

NB: you will probably need to specify where the sources are for each jars (right click on a jar > Properties > Java source attachment)

[image is courtesy of JBoss community]

Please use the Eclipse plugin zipeditor in order to view the content of jars, zips or wars: Enter update site: http://zipeditor.sourceforge.org/update and enjoy. That is the best choice so far to handle archives in Eclipse.

需要将jar添加到库选项卡中的构建路径(如果尚未添加),以便可以在引用的库下查看

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM