I had an entire code in a class Graph2 of my java project. I was trying to use JSmooth to create a .exe file for my program. Then I switched to Launch4j and used it to create the .exe. When I came back to my project, all my source code was gone and this is what it got replaced with:
< ?xml version="1.0" encoding="ISO-8859-1"?>
< jsmoothproject>
< arguments></arguments>
< embeddedJar>false</embeddedJar>
< initialMemoryHeap>-1</initialMemoryHeap>
< mainClassName></mainClassName>
< maximumMemoryHeap>-1</maximumMemoryHeap>
< maximumVersion></maximumVersion>
< minimumVersion></minimumVersion>
< skeletonName><![CDATA[
< none>]]>
< /skeletonName>
< /jsmoothproject>
Help?
1) If you have at least the class files, decompile them. Where can I find a Java decompiler?
2) If you don’t, you still have the jar file inside the exe generated by JSmooth (or Launch4j). JSmooth extracts the jar in the default temporary directory, so make a copy of it while your program is running. From the jar file you can get the class files (with an unzip program), then go to point 1)