Axis2 and Eclipse

S

Sam Takoy

Hi,

I just downloaded Axis2 and want to write java code in eclipse that
uses it. I need classes in org.apache.axis2.*. How do I find out in
which of the 60 jar files in lib/ are the relevant classes located?

Many thanks in advance,

Sam
 
A

Arne Vajhøj

I just downloaded Axis2 and want to write java code in eclipse that
uses it. I need classes in org.apache.axis2.*. How do I find out in
which of the 60 jar files in lib/ are the relevant classes located?

Usually you can detect it from the name of the jar files.

And you can verify by listing the content of the jar files.

There are also many scripting and Java programming solutions.

Arne
 
L

Lew

Arne said:
Usually you can detect it from the name of the jar files.

And you can verify by listing the content of the jar files.

There are also many scripting and Java programming solutions.

You can script a search using "jar tf <jarname>" or "unzip -l <jarname>" for a list of jarnames. I usually just grep the JARs directly, though, sincethe directories are text and therefore greppable.

Using bash:

$ grep MyWorld libs/*.jar
Binary file libs/universe.jar matches.

$ jar tf libs/universe.jar | grep MyWorld
com/lewscanon/foo/util/MyWorld$1.class
com/lewscanon/foo/util/MyWorld$2.class
com/lewscanon/foo/util/MyWorld$3.class
com/lewscanon/foo/util/MyWorld$4.class
com/lewscanon/foo/util/MyWorld$Messages.class
com/lewscanon/foo/util/MyWorld.class
com/lewscanon/foo/util/MyWorldUtils.class

$ for fl in libs/*.jar; do grep -q MyWorld $fl && echo $fl && jar tf $fl | grep MyWorld; done
libs/universe.jar
com/lewscanon/foo/util/MyWorld$1.class
com/lewscanon/foo/util/MyWorld$2.class
com/lewscanon/foo/util/MyWorld$3.class
com/lewscanon/foo/util/MyWorld$4.class
com/lewscanon/foo/util/MyWorld$Messages.class
com/lewscanon/foo/util/MyWorld.class
com/lewscanon/foo/util/MyWorldUtils.class

$

or such
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top