1

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...

Jacob
  • 14,463
  • 65
  • 207
  • 320
Christian 'fuzi' Orgler
  • 1,682
  • 8
  • 27
  • 51

3 Answers3

2

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

Timr
  • 1,012
  • 1
  • 14
  • 29
2

I also recommend using JD-GUI, it helped me a lot when my simple text editor corrupted my .java files and I was able to convert the classes back into source using it.

Vineet Kosaraju
  • 5,572
  • 2
  • 19
  • 21
0

delete the $ files first, then Jad is the best, jdgui makes errors.