Search code examples
javajarrecreate

Recreate project from .jar file


Is there any chance, to recreate a (netbeans-)project from a .jar file? Becuase I trusted some silly cryption-software that corrupt's my file.

Is their any suggestion or solution? I already extracted the .jar file with terminal commands 'jar xf MyJarFile.jar'. But I can't read the code in it...


Solution

  • You could decompile the jar into the sources and then create a new project and drag all the sources into your src folder. I like using JD-GUI for decompiling .jars: http://java.decompiler.free.fr/?q=jdgui