Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Java, finding methods within jar files

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
Los Angeles1
Asked:
Los Angeles1
  • 2
  • 2
1 Solution
 
CEHJCommented:
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
 
Los Angeles1Author Commented:
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
 
Los Angeles1Author Commented:
Can someone tell me if what I am asking for is NOT possible with jar commands >

Thanks
0
 
CEHJCommented:
:)

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now