PDA

View Full Version : compile a .class



mailtosaleh
10-11-2007, 02:21 AM
I decompiled a .class file, but when I saved it is was saved as a text file not as a binary .class file,
Is there any soft which I can compile it back to .class?

Twey
10-11-2007, 03:35 AM
If you decompiled it of course you got a text file.

You can compile it again with any Java compiler.

mailtosaleh
10-11-2007, 03:41 AM
If you decompiled it of course you got a text file.

You can compile it again with any Java compiler.
Thanks
can you recommend any free compiler?

Twey
10-11-2007, 04:36 AM
The official Sun Microsystems one will work; there're also ECJ (the Eclipse Compiler for Java) and GCJ (the GNU Compiler for Java), as well as a small host of others.

jr_yeo
10-17-2007, 09:05 AM
Gel, Textpad, Netbeans :)

Twey
10-17-2007, 02:57 PM
Compilers, not editors.

jr_yeo
10-18-2007, 04:53 AM
Oh. :confused:

msmedley
10-24-2007, 11:51 PM
What's wrong with the good ol' JDK?

http://java.sun.com/javase/downloads/index.jsp

Twey
10-25-2007, 12:39 AM
The official Sun Microsystems one will work