Class File for Converting Java Files

How to get java source file ie from class file ie from compiled file?

+7
java decompiling
source share
6 answers

You can use javap to return the source from bytecode.

There are many tools and plugins to help you make out, and you can find the one being discussed here.

0
source share

Check out this Java Decompiler.

Also see this Wikipedia page to learn more about decompilation.

It should be noted that the code that you receive when decompiling the bytecode is not readable.

+5
source share

You must use a disassembler.

Java Decompiler is a good choice.

In addition, the Java Decompiler has a plug-in for Eclipse.

+2
source share

You can use the javap command to get the general structure of the file.

On the side of the note: The best way to disconnect someone from the source from your compiled code is to use obfuscation.

+1
source share

Yes, you cannot do anything like reverse conversion.

What you can do is change the bytecode at runtime. This is allowed in Java ...

Check out the java.lang.instrumentation . This will help you achieve your goal to a certain extent ...

0
source share

I just published the standalone Java Decompiler (Jad based) GUI, which you can get from Util Java Decompiler (JAD based) v1.0

This is a Windows-based .NET 4.0 application that supports drag n'drop * .jar files.

0
source share

All Articles