jar to .java conversion [duplicate]
Possible Duplicate:
Where can I find a Java decompiler?
Can anyone tel开发者_运维知识库l me how i can convert jar file to it's corresponding .java source file?
I have jar file from unknown source. Is it possible to get the corresponding .java source file out of jar?
You can use java decompiler
In principle you can decompile any jar file, by using ,for example, JAD http://en.wikipedia.org/wiki/JAD_%28JAva_Decompiler%29
But if the jar was obfuscated the result may not be very pretty. ;)
My fav decompiler is cavaj, you can download from the following url
http://cavaj-java-decompiler.en.softonic.com/
Normally are in a "jar" archive only the compiled Java files (". class"). But you could theoretically try to decompile these files.
Here you'll find e.g. a decompiler
精彩评论