how to compile

Discussion in 'Bukkit Help' started by BeeT, Dec 3, 2011.

  1. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey, I have source: https://github.com/CitizensDev/Citizens
    and I would like to translate some text. How to open as project this source? Because helios eclipse and netbeans don't identify this source like project and I can't compile files...

    Please help, how to open this source as project or how to make simple compiler.
    Thank you.
  2. Offline

    saul100

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You want to de-compile projects? Try JD-GUI
  3. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No. I want to compile java files, but some plugins sources aren't netbeans or eclipse projects and I don't know how to compile it...
    Example: [IMG]

    So how to compile these files?
    Or how to open source as project in netbeans or eclipse...
    Source: https://github.com/CitizensDev/Citizens
  4. Offline

    saul100

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You can easily import folders.
    Go to: File -> Import.
    Where it says select root directory, choose the file you want to import, and it should open and convert it to an netbeans/eclipse file.
  5. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Personally for me it doesn't work...

    [IMG]
  6. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    After compile I had this error:

    2011-12-04 04:05:03 [SEVERE] Could not pass event CUSTOM_EVENT to Citizens
    java.lang.NoClassDefFoundError: net/citizensnpcs/Settings
    at net.citizensnpcs.healers.Healer.getHealthRegenRate(Healer.java:122)
    at net.citizensnpcs.healers.listeners.HealerCitizensListen.onCitizensEnable(HealerCitizensListen.java:25)
    at net.citizensnpcs.api.event.citizens.CitizensListener.onCustomEvent(CitizensListener.java:30)
    at org.bukkit.plugin.java.JavaPluginLoader$96.execute(JavaPluginLoader.java:934)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.citizensnpcs.Citizens$2.run(Citizens.java:141)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.Settings
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 11 more
    2011-12-04 04:05:03 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    2011-12-04 04:05:03 [INFO] [Citizens]


    but i didn't change anything...
    I compiled all project and file Healer.class placed to Healer.jar package.

    This post has been edited 1 time. It was last edited by BeeT Dec 4, 2011.

Share This Page