Solved Need Help, Lost My Source Code, Only have a .jar file

Discussion in 'Plugin Development' started by SmokyMiner, Jan 24, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    SmokyMiner

    So I wiped my computer the other day and I thought I saved the code to a plugin I was working on, but apparently not. I only have the .jar I made when testing the plugin out, is there a way I can get my code back from the .jar file?
     
  2. Offline

    SimplyNolan

    Did u lock it when u compiled it? then u might have the .java files
     
  3. Offline

    drtshock

    Jd gui decompile it.
     
    SmokyMiner and ZeusAllMighty11 like this.
  4. Offline

    SmokyMiner

    Alright, but before I go through that I just wanna make sure I did lose the source, I copied my work space folder over assuming that was where everything was saved, then when I re-installed eclipse and selected the copied folder as the current work space folder none of my pervious code was present. Do I have to do something like import it? Or is it lost and should I use Jd gui
     
  5. Offline

    Tog

    Is the project still in your workspace folder? If it is, open Eclipse, press "File", "Import", select "Existing Projects into Workspace" and then press next and browse to your project's folder.
     
    SmokyMiner likes this.
  6. Offline

    Cronos79

    After you get them restored you should use git or svn. Most bukkit stuff I see uses git. Makes rolling back mistakes easier also. With java its easy to get your source anyways if that's why you didn't want to post it on GitHub.

    I have formatted my hard drive and forgot to make a copy of my c++/c# code :( and that's much harder to get back if at all.
     
  7. Offline

    SmokyMiner

    I got it back, had to use Jd gui, thanks for the help guys.
     
Thread Status:
Not open for further replies.

Share This Page