How to Compile a Plugin from Source Code

Discussion in 'Plugin Development' started by Brzurk, Aug 29, 2016.

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

    Brzurk

    How can I compile a plugin from it's source code? I have a list of plugins that I want compiled, but i'm not sure how I can turn it into a .jar. Can anybody assist in the process?
     
  2. Offline

    Kermit_23

    tip: learn java. once you've learned java, start bukkit coding. anyways, here is a tutorial
     
  3. Offline

    Zombie_Striker

    @Kermit_23
    Although this is a basic Java issue, you should tell him why/how you know he does not know Java.

    @Brzurk
    If you're using an IDE, there should be an export option/button to turn your code into a jar. If not, and you wrote all the code through a basic text editor, then you will need to compile it using a command prompt.
     
  4. Offline

    Brzurk

    I didn't write the code, it's on GitHub and I was wondering how I can turn the source code into a .jar
     
  5. Offline

    Zombie_Striker

    @Brzurk
    1. Download the project to your computer. It should come in a zip format.
    2. Move all of the contents of that zip into it's own directory.
    3. Using an IDE like eclipse of inteliJ, import that project.
    4. After importing it, export the jar.
     
  6. Offline

    Brzurk

    it's giving me an error when I try to export it is a .jar file
     
  7. Offline

    HeartandSoul

    Ok, think about this: Are you copying just one class? Don't even copy code. I get Its ok on GitHub, but learning to code will better help you understand these errors of yours. This way, you won't have to post these. Its a time saver
     
  8. Online

    timtower Administrator Administrator Moderator

    @HeartandSoul Sometimes it is about getting the plugin, not about learning to code.

    @Brzurk You are probably missing some dependencies.
    Why not ask the original developer for the jars instead?
     
    Last edited: Aug 29, 2016
  9. Offline

    HeartandSoul

    What IDE are you using?
     
  10. Offline

    Brzurk

    Using Eclipse

    Not sure how to get into contact with him

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  11. Online

    timtower Administrator Administrator Moderator

    Create an issue on github at his repository.
     
Thread Status:
Not open for further replies.

Share This Page