PDA

View Full Version : compile a .class



mailtosaleh
10-11-2007, 01: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, 02: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, 02: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, 03: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, 08:05 AM
Gel, Textpad, Netbeans :)

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

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

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

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

Twey
10-24-2007, 11:39 PM
The official Sun Microsystems one will work