How to get java file i.e source code from class file i.e from compiled file?
You can make use of javap for getting the source back from bytecode.
There are plenty of tools and plugin that help you to disassemble and you can find some discussed here.