I Cannot figure out how to fix this, ive been trying for 5h straight now (im a beginner)

Discussion in 'Plugin Development' started by Ergun_TV, Mar 12, 2022.

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

    Ergun_TV

    Everytime i try to compile my Plugin it gets the error:
    symbol: class JavaPlugin
    location: package org.bukkit.plugin.java
    HalloWeltPlugin.java:3: error: cannot find symbol
    public class HalloWeltPlugin extends JavaPlugin {
    ^
    symbol: class JavaPlugin
    HalloWeltPlugin.java:5: error: cannot find symbol
    this.getlogger().info("Hallo Welt!");
    ^
    symbol: method getlogger()
    3 errors


    My Script:

    import org.bukkit.plugin.java.JavaPlugin;

    public class HalloWeltPlugin extends JavaPlugin {
    public void onEnable() {
    this.getlogger().info("Hallo Welt!");
    }

    public void onDisable() {
    }
    }

    I am yousing jEdit btw.
    I would be glad if someone could tell me what to do.
    i took this example from an Book about how to do this, tryed everything it told me but nothing happend.
    Cant find an solution thats works for me on google or Tutorial videos as well.
     
  2. Online

    timtower Administrator Administrator Moderator

    Why not use eclipse or intelij like everybody else?
     
  3. Offline

    Ergun_TV

    I guess i could, its just that i used the code that the book provided me with the plugin they told me as it would be beginner friendly they said, but thx for the tipp ^^ ill try it
     
  4. Offline

    CraftCreeper6

    @Ergun_TV
    Definitely stick to a well known IDE for things like this, I recommend Eclipse to start with since it's quite user friendly and easy to learn, IntelliJ is much more powerful but has a steeper learning curve.
     
  5. Offline

    Strahan

    Do you have the API jar in whatever the equivalent is of a build path in jEdit?

    You don't need to use "this" btw.
     
Thread Status:
Not open for further replies.

Share This Page