Solved

Java, finding methods within jar files

Posted on 2014-01-15
4
273 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
Comment Utility
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
Comment Utility
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
Comment Utility
Can someone tell me if what I am asking for is NOT possible with jar commands >

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:)

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now