I had tried to decompile using JAD or DJ Java decompiler. But I could
not obtain full source.
Please let me know excellent way how to decompile completely!!
Thanks in advance.
Regards.
-Andrew
david.karr - 04 Sep 2007 18:19 GMT
> I had tried to decompile using JAD or DJ Java decompiler. But I could
> not obtain full source.
[quoted text clipped - 4 lines]
>
> -Andrew
It's not possible. The process of decompiling only translates from
the data in the class file, which doesn't retain many aspects that are
present in the original source file.
Joshua Cranmer - 04 Sep 2007 22:13 GMT
> I had tried to decompile using JAD or DJ Java decompiler. But I could
> not obtain full source.
[quoted text clipped - 4 lines]
>
> -Andrew
This is impossible unless you know how to read minds. The process of
compiling Java code -- or indeed, any code -- includes a part which
strips out comments. Automatically, that makes full-source-reproduction
impossible.

Signature
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Roedy Green - 05 Sep 2007 05:01 GMT
>I had tried to decompile using JAD or DJ Java decompiler. But I could
>not obtain full source.
>Please let me know excellent way how to decompile completely!!
You will won't get a perfect decompile, but you can get a perfect
disassembly.
See http://mindprod.com/jgloss/decompiler.html
http://mindprod.com/jgloss/disassembler.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com