Solved

Java, finding methods within jar files

Posted on 2014-01-15
4
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

733 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