Error when starting a server

Discussion in 'Plugin Development' started by Jozeth, Apr 13, 2014.

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

    Jozeth

    After compiling jCommands with the latest dev build (even happens on the older ones, 1.7.2 onwards) and starting a server, I get this error:

    Code:
    [22:51:15 ERROR]: Could not load 'plugins\jCommands.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.IllegalStateException: JavaPlugin requires org.bukkit.plugin.java.PluginClassLoader
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[bukkit-1.7.8-R0.1.jar:?]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[bukkit-1.7.8-R0.1.jar:?]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [bukkit-1.7.8-R0.1.jar:?]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:350) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.<init>(CraftServer.java:312) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at net.minecraft.server.v1_7_R3.PlayerList.<init>(PlayerList.java:68) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at net.minecraft.server.v1_7_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.8-R0.1.jar:git-Bukkit-1.7.2-R0.3-20-g62bdfa8-b3048jnks]
    I use IntelliJ IDEA to code my plugins, if that helps.
     
    5chris100 likes this.
  2. Offline

    amhokies

    Jozeth
    err.. do you mean this happens when you start your server? These aren't compilation errors.
     
  3. Offline

    Jozeth

    Oh yeah, it's because it compiles then runs the test server, my bad, got confused.
     
  4. Offline

    amhokies

    My only guess is using a different CB build.
     
  5. Offline

    Violence010

    Jozeth Yeah, Try Going into your External Jars And Upload your servers CB Build, Also i recommend Using Eclipse To Code your Plugins.
     
  6. Offline

    Jozeth

    I moved from Eclipse ages ago.
     
  7. Offline

    5chris100

    Glad to see someone else is smart enough to use a higher-class IDE. :p

    You're using IDEA's "debug/run" feature, correct? If so, can you tell me your configuration? I may be of assistance. :)
     
  8. Offline

    Jozeth

    I literally scrapped the whole IDE test server stuff and I now run a test server separate to IDEA.
     
    5chris100 likes this.
  9. Offline

    5chris100

    Ah, I see. That's what I used to do, but then I switched (unsuccessfully) to IDEA's testing. Welp, go back to the old grind.
     
    Jozeth likes this.
Thread Status:
Not open for further replies.

Share This Page