Search code examples
javacompilationdecompiling

Java - Compile .class file to readable file


I made a big error and I need your help:

I work on a project for the school with java and I made a big error!

I sent to me only the *.class files and deleted the other files(I work in my school with VM).. Is there a way to compile these .class files to .java files?

Thanks


Solution

  • You need to use decompiler for that not the compiler.

    First decompile using decompiler and then do some changes what ever you needed and then again compile it.Than your problem will solve

    SEE HERE