Dear all Java gurus,
Is there a way to disassembly a .jar file. How to see what are the classes
inside the .jar file; what are the methods available, and the calling
convention to those mothod functions?
Is there such a debugger or disassembler in Java?
thanks a lot
|
|
0
|
|
|
|
Reply
|
lucy
|
8/25/2004 11:02:34 PM |
|
lucy wrote:
> Dear all Java gurus,
>
> Is there a way to disassembly a .jar file. How to see what are the classes
> inside the .jar file; what are the methods available, and the calling
> convention to those mothod functions?
>
> Is there such a debugger or disassembler in Java?
>
> thanks a lot
List jar contents:
jar -t filename.jar
Extract a named file:
jar -x filename.jar (name)
Extract all:
jar -x filename.jar
--
Paul Lutus
http://www.arachnoid.com
|
|
0
|
|
|
|
Reply
|
Paul
|
8/25/2004 11:19:02 PM
|
|
lucy wrote:
> Dear all Java gurus,
>
> Is there a way to disassembly a .jar file. How to see what are the classes
> inside the .jar file; what are the methods available, and the calling
> convention to those mothod functions?
>
> Is there such a debugger or disassembler in Java?
>
> thanks a lot
>
>
See http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html
Particularly the jar and javap tools.
HTH,
Carl.
|
|
0
|
|
|
|
Reply
|
Carl
|
8/25/2004 11:21:10 PM
|
|
In addition to using the jar commandline, if you're using an IDE (like Sun
One Studio, etc.), you can mount the jar file and expand it in a tree
structure to see all of it's classes, fields, method signatures, etc.
visually.
"lucy" <losemind@yahoo.com> wrote in message
news:cgj5q8$lgj$1@news.Stanford.EDU...
> Dear all Java gurus,
>
> Is there a way to disassembly a .jar file. How to see what are the classes
> inside the .jar file; what are the methods available, and the calling
> convention to those mothod functions?
>
> Is there such a debugger or disassembler in Java?
>
> thanks a lot
>
>
|
|
0
|
|
|
|
Reply
|
Byron
|
8/26/2004 12:45:02 AM
|
|
Hi,
The simple answer is yes. I do not know of a tool that will decompile the
classes from the jar (but it may be out there). If you unzip or extract
using jar -x so you have class files, then you can use jad to decompile.
Also Jedit has a plugin that will use Jode, within the Jedit IDE.
You could build a tool that would read the jar (see java.util.jar) and then
stream the stuff to Jode, and for all I know this may exist as a plugin to
Jedit. Jode is written in Java with source, Jad is C.
This will work on 99% of the stuff out there. A few people have encrypted
the class files, and provide a class loader that knows how to decrypt the
files. Having written one of these encryption tools I would point out they
are not that secure.Just note that by using Jode/Jad you may be breaking a
copyright or other legal agreements, so don't publish the code you obtain
this way, it almost always is illegal. There are a few books that discuss
this, if you just want to hack then "Covert Java" is pretty interesting and
while written on a basic level the author (Alex Kalinosky) does address some
very interesting problems, but not for the OO crowd.
Howie
"lucy" <losemind@yahoo.com> wrote in message
news:cgj5q8$lgj$1@news.Stanford.EDU...
> Dear all Java gurus,
>
> Is there a way to disassembly a .jar file. How to see what are the classes
> inside the .jar file; what are the methods available, and the calling
> convention to those mothod functions?
>
> Is there such a debugger or disassembler in Java?
>
> thanks a lot
>
>
|
|
0
|
|
|
|
Reply
|
hg
|
8/30/2004 3:01:50 PM
|
|
As someone said, jad is good. I would use winzip & extract all the
class files into some directory and then run jad from dos on them.
--------------------------------------------
Answers to your java questions
http://java-questions.pattonwebsolutions.com
--------------------------------------------
"lucy" <losemind@yahoo.com> wrote in message news:<cgj5q8$lgj$1@news.Stanford.EDU>...
> Dear all Java gurus,
>
> Is there a way to disassembly a .jar file. How to see what are the classes
> inside the .jar file; what are the methods available, and the calling
> convention to those mothod functions?
>
> Is there such a debugger or disassembler in Java?
>
> thanks a lot
|
|
0
|
|
|
|
Reply
|
javaprog53
|
9/6/2004 7:58:47 PM
|
|
On Tue, 7 Sep 2004 03:58:47 +0800, Smith wrote
(in article <a117c62d.0409061158.2246b41b@posting.google.com>):
> As someone said, jad is good. I would use winzip & extract all the
> class files into some directory and then run jad from dos on them.
>
> --------------------------------------------
> Answers to your java questions
> http://java-questions.pattonwebsolutions.com
> --------------------------------------------
>
> "lucy" <losemind@yahoo.com> wrote in message
> news:<cgj5q8$lgj$1@news.Stanford.EDU>...
>> Dear all Java gurus,
>>
>> Is there a way to disassembly a .jar file. How to see what are the classes
>> inside the .jar file; what are the methods available, and the calling
>> convention to those mothod functions?
>>
>> Is there such a debugger or disassembler in Java?
>>
>> thanks a lot
nar, if you want to be blown away by a good decompiler, that can find dead
code, and handle messed up class files you need
djdec377.zip
just do a search on the internet
|
|
0
|
|
|
|
Reply
|
steve
|
9/7/2004 9:54:08 PM
|
|
|
6 Replies
305 Views
(page loaded in 0.117 seconds)
|