How to get .java file from .class file?

UPDATED: 07 August 2011

Some of us having question like. "Is it possible to get .java file from .class file?" , "Extract real code from .class file?".

Hello folks i wondered that this is possible to get .java (file real source code) from .class file. I don't know about this thing, on facebook MJVM club one of our Java lover asked this question. Join us on facebook for more java based question answer.

This is very bad thing about java i came through about this. Now i'll show you how to do this thing.

Download the software from below links.

The first tool is easy to use. Second tool is command based so once you have copied file to bin folder of jdk.

command to extract the .java file is
jad -sjava filename.class"