Hi all
I don't know how to ask this, so I'll ask it as if I was 8 years old.
I have several jars that expose several API's. For several reasons that
don't need to be brought to public, I don't have the documentation for
them. Is there something that can read a .jar or a .class and tell me
all the public methods in existence? I believe JBuilder used to do
this, but I am not sure, a co-worker referred it when we were dealing
with this problem.
Many thanks for the help,
Hieronymus
NullBock - 16 Dec 2005 15:59 GMT
Check out the Java disassembler that comes with every Java SDK
download--it's called javap. Here's a link to the Sun description:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
Hope that helps,
Walter Gildersleeve
Freiburg, Germany
______________________________________________________
http://linkfrog.net
URL Shortening
Free and easy, small and green.
Robert Klemme - 16 Dec 2005 16:02 GMT
> Hi all
>
[quoted text clipped - 9 lines]
> Many thanks for the help,
> Hieronymus
Google for "jad".
robert
Roedy Green - 16 Dec 2005 16:16 GMT
>I have several jars that expose several API's. For several reasons that
>don't need to be brought to public, I don't have the documentation for
>them. Is there something that can read a .jar or a .class and tell me
>all the public methods in existence? I believe JBuilder used to do
>this, but I am not sure, a co-worker referred it when we were dealing
>with this problem.
you can use Jarlook. It will tell you what classes are in there. You
can then fish them out and decompile them.
see http://mindprod.com/jgloss/decompiler.html
http://mindprod.com/products1.html#JARLOOK

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
rui.pacheco@gmail.com - 16 Dec 2005 16:40 GMT
Don't forget how easy it is to open a jar file: just rename the
extension to .zip and open it with Winzip. The trick is in reading the
.class file... ;)
Roedy Green - 16 Dec 2005 22:18 GMT
>Don't forget how easy it is to open a jar file: just rename the
>extension to .zip and open it with Winzip. The trick is in reading the
>.class file... ;)
you don't even have to rename. Winzip will read *.jar. They just
refuse to treat them an archive in the open wildcard.
I have written them several times and they always refuse saying that
jars are more than zips and they don't want people trying to use
Winzip to modify jars.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Chris Smith - 16 Dec 2005 18:10 GMT
> I don't know how to ask this, so I'll ask it as if I was 8 years old.
>
[quoted text clipped - 4 lines]
> this, but I am not sure, a co-worker referred it when we were dealing
> with this problem.
That's quite a vocabulary for an 8-year-old! ;)
In addition to decompilers like jad (which are probably overkill), you
can use javap, which comes with the Java SDK.
You could also add the JAR to your Eclipse build path and browse through
it that way. Eclipse will show you the public API, both in the "package
explorer" view and in an editor if you double-click from package
explorer. Other IDEs probably have similar features.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
IchBin - 16 Dec 2005 20:43 GMT
> Hi all
>
[quoted text clipped - 9 lines]
> Many thanks for the help,
> Hieronymus
You could download FrontEnd Plus with JAD included from..
http://simtel.net/pub/pd/61887.shtml

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)