How do I display the contents of a jar file?
Author: Deron Eriksson
Description: This tutorial describes how to display the contents of a jar file in the Eclipse console.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)

In EclipseSW, a quick way to display the contents of a jarW file is to create an External Tools configuration that executes a jar command on a selected resource. I created an External Tools configuration with the following characteristics.

Name:display jar contents
Working Directory: 
Arguments:tf "${resource_loc}"

This external tool configuration is shown below.

'display jar contents' External Tool Configuration

As a test, I selected the "mytest-1.0-SNAPSHOT.jar" file and chose the "display jar contents" tool.

Executing 'display jar contents' on 'mytest-1.0-SNAPSHOT.jar'

The results of "display jar contents" are displayed in the Console view, shown below.

'display jar contents' results