Solved

Java, finding methods within jar files

Posted on 2014-01-15
4
274 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum5 challenge 5 71
Java DateChooser? 3 29
custom annotations 9 32
reverse digits of a number using for loop 5 36
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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.

920 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

16 Experts available now in Live!

Get 1:1 Help Now