Question

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

Was it helpful?

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

OTHER TIPS

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.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top