How to compile Nukkit jar file?

Discussion in 'Help and FAQ' started by ankitmaharjan252, Apr 24, 2016.

  1. ankitmaharjan252

    ankitmaharjan252 New Member

    Apr 24, 2016
    12
    0
    1
    Male
    Hi, I was wondering how do I compile Nukkit from source? I've added/removed some feature for my Hub server. I added the project to eclipse and tried clicking export / jar file then after tried running the jar after it didn't work. Can you guys tell me how please? Thanks
     
  2. ankitmaharjan252

    ankitmaharjan252 New Member

    Apr 24, 2016
    12
    0
    1
    Male
    Anyone help me I need it
     
  3. JCDcrafter

    JCDcrafter New Member

    Apr 28, 2016
    22
    7
    3
    Male
    I think you use maven on your PC to compile it
     
    applqpak likes this.
  4. AndrewBit

    AndrewBit Member

    Apr 15, 2016
    40
    37
    18
    Male
    Human("Andrew").getOccupation()
    Human("Andrew").getLocation()
  5. iZenith_xPr

    iZenith_xPr New Member

    Oct 15, 2016
    9
    1
    3
    Male
  6. xBeastMode

    xBeastMode New Member

    Jan 6, 2017
    1
    0
    1
    Male
    I'm wondering this too. I copied the path format exactly like other plugins and compiled the source into a '.jar' file, but the plugin does not enable.
     
  7. Kairus Dark Seeker

    Kairus Dark Seeker New Member

    Jul 6, 2016
    12
    3
    3
    Male
    Software Developer
    # You need Java 8 installed to make this work
    Install Maven first
    # For Ubuntu 16.04
    Code:
    apt install maven
    # For CentOS
    Code:
    yum install maven
    After that, change your directory to the unzipped directory of the source code of Nukkit
    Code:
    cd your-nukkit-source-path
    Then run maven on that directory and it should create a jar file of Nukkit in the directory named target
    Code:
    mvn install