Solved

Java, finding methods within jar files

Posted on 2014-01-15
4
276 Views
Last Modified: 2014-01-16
Apparently a command such as

jar tf test.jar

Open in new window


can find a class in a jar file

Is there a command in which to find a method within a jar file ?
0
Comment
Question by:Los Angeles1
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39782985
What do you mean by 'finding a method' and what is your goal?

Don't describe the code you think you need or the steps. Describe the GOAL
0
 

Author Comment

by:Los Angeles1
ID: 39783017
Your right.

I have a jar file, it has its own source and object code, but is also bundled with its dependent jars within the master jar file

I want to find out if a given method in a given Class is being called by the jar, and which of the dependent jars bundled within the master jar contains that class.

Specifically, I want to find out if the code is calling the getProviderVersion from either MQCOnnectionData or ConnectionData class

So I want to see if the code uses which or either of these, and which of the dependent jars within the master jar contains the methods
0
 

Author Comment

by:Los Angeles1
ID: 39783544
Can someone tell me if what I am asking for is NOT possible with jar commands >

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39786519
:)

You are correct. What you're asking for is NOT possible with jar commands. You need logging or a debugger
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question