Converting .class file to text

Ok I was playing around building a TicTacToe game in Java and when I was done, compiled, made sure everything was working, I tried to copy the files to another directory using the cp command. It took me a few tries to get the arguments correct, but I succeeded in the end. In the process, however, I did something and now my .java file is binary? Well it starts with:

cafe babe 0000 0033 006a 0a00 1e00 3207

and then goes down to similar things 140 lines down. Is there a way to put it back into text?

+3


source to share


2 answers


You will still have a file .java

. if you want to decompile your file .class

, download the decompiler from the following link and open the file .class

in the decompiler



http://jd.benow.ca/

+1


source


Java file is the original file. The .class file is a compiled java file.



So there is nothing wrong with that.

+4


source







All Articles