Reputation: 9
I accidentally deleted the whole folder nest thingy from my workspace for this project I'm working on and now I only have a exported JAR file.
Is there any way I could just open the JAR file with Eclipse or something like that?
I have tried extracting the JAR to my desktop and then just dragging the files into Eclipse but it doesn't work. It just gives me all the classes back but I cannot use them.
Is there any way I can get the code from the JAR file?
Upvotes: 1
Views: 1429
Reputation: 1743
you definitely need a java decompiler like :
http://java.decompiler.free.fr/
download jd-gui and open your jar with this program and then "save all sources" to someplace.
Upvotes: 3