Solved how do i open a finsihed plugin ?

Discussion in 'Plugin Development' started by kindak, Aug 4, 2016.

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

    kindak

    alright i made a plugin but accaidently removed my files to in in ecplispe but lucky enough i saved it as an executeble plugin how do i seee the code again ,.. ?
     
  2. @kindak
    Jar files do not contain your original code, they contain something called Java bytecode. thenewboston explained this brilliantly: the compiler turns code you can understand, into code the computer can understand.

    What you can do is decompile this bytecode using a decompiler, and you will get your code back. Here is an online one which lets you pick from a bunch of different decompilers.

    For future reference, it is recommended that you keep backups of your code so situations like this can't occurr. Alternatively, you can have an online repository (github is my personal favourite) which contains your code so you can download it at any time.
     
  3. Offline

    timtower Administrator Administrator Moderator

    @kindak Import it again, assuming that the original files are still there.
     
    bwfcwalshy likes this.
  4. @kindak If you used Eclipse when you remove it the files are still there, you can just re-import it.
     
  5. Offline

    kindak

    are you sure that they dont dissapear becasue i cant find it in my fils..

    The online decompiler worked thanks <3
     
    Last edited: Aug 4, 2016
  6. Offline

    timtower Administrator Administrator Moderator

    Depends on what you did
     
Thread Status:
Not open for further replies.

Share This Page