I got this error can u guys save me?

Discussion in 'Programming' started by JordieNiels, May 3, 2015.

  1. Here is the code: CLICK ME FOR PASTEBIN
    1. [16:56:59 INFO]: loading properties
    2. [16:56:59 INFO]: Default game type: SURVIVAL
    3. [16:56:59 INFO]: Generating keypair
    4. [16:56:59 INFO]: Starting Minecraft server on *:40084
    5. [16:57:00 INFO]: This server is running CraftBukkit version git-Bukkit-15e81cf (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    6. [16:57:00 ERROR]: Could not load 'plugins/DennisGodFly.jar' in folder 'plugins'
    7. org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.JordieNiels.DennisGodFly'
    8. at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:42) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    9. at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    10. at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    11. at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    12. at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:288) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    13. at org.bukkit.craftbukkit.v1_8_R1.CraftServer.<init>(CraftServer.java:250) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    14. at net.minecraft.server.v1_8_R1.PlayerList.<init>(PlayerList.java:69) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    15. at net.minecraft.server.v1_8_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    16. at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:133) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    17. at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473) [craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    18. at java.lang.Thread.run(Thread.java:745) [?:1.7.0_79]
    19. Caused by: java.lang.ClassNotFoundException: me.JordieNiels.DennisGodFly
    20. at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_79]
    21. at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_79]
    22. at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_79]
    23. at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_79]
    24. at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    25. at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    26. at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_79]
    27. at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_79]
    28. at java.lang.Class.forName0(Native Method) ~[?:1.7.0_79]
    29. at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_79]
    30. at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[craftbukkit-1.8.jar:git-Bukkit-15e81cf]
    31. ... 10 more
    32. [16:57:00 INFO]: Preparing level "world"
    33. [16:57:00 INFO]: Preparing start region for level 0 (Seed: 6453983789500210412)
    34. [16:57:01 INFO]: Preparing spawn area: 21%
    35. [16:57:02 INFO]: Preparing spawn area: 53%
    36. [16:57:03 INFO]: Preparing start region for level 1 (Seed: 6453983789500210412)
    37. [16:57:04 INFO]: Preparing start region for level 2 (Seed: 6453983789500210412)
    38. [16:57:04 INFO]: Server permissions file permissions.yml is empty, ignoring it
    39. [16:57:04 INFO]: Done (4.153s)! For help, type "help" or "?"
    40. [16:57:04 INFO]: Starting GS4 status listener
    41. [16:57:04 INFO]: Query running on 0.0.0.0:40084
    42. [16:57:11 WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2946ms behind, skipping 58 tick(s)
    43. say §bRented §bfrom §6§nServer.pro§r §b- §bFree §bGame §bHosting
    44. say §bGet §6Premium§r §bto §bremove §bads
    45. [16:57:22 INFO]: [Server] §bRented §bfrom §6§nServer.pro§r §b- §bFree §bGame §bHosting
    46. [16:57:23 INFO]: [Server] §bGet §6Premium§r §bto §bremove §bads
    Yes i do use gratisservers to test
    Also this code comes from TheBCBroz (if this guy is not good at java and i learned poop today can u guys recommend a good new youtuber that does java tuturials?)
     
  2. It's literally right there....
    Cannot find main class `me.JordieNiels.DennisGodFly'
    It's your main class not package
     
  3. Included in the plugin (.jar) there's a file named plugin.yml. It points to a class that's not available in the plugin.
     
  4. http://pastebin.com/gcAXE7Vw

    thats my plugin.yml whats the problem

    i ask if u can help me not to say something that i already knew
     
  5. Your main class is not named 'DennisGodFly', or is not in the package 'me.JordieNiels'. I think you forgot to add the main class' name. Usually it's something like me.JordieNiels.DennisGodFly.Plugin or me.JordieNiels.DennisGodFly.Main.
     
  6. so i should change the package name from the project to me.JordieNiels.DennisGodfly.Main and than the 'main' section in my .yml to me.JordieNiels.DennisGodfly.Main aswell?
     
  7. What is your main class called?
     
  8. DennisGodFly.java it says
     
  9. Screenshot your package.
     
  10. [​IMG]
    corner right is my plugin.yml
     
  11. Your package name is: me.JordieNiels.DennisGodFly
    Your main class name is: DennisGodFly

    This means you've to link it in your plugin.yml as me.JordieNiels.DennisGodFly.DennisGodFly
     
    • Like Like x 1
    • Agree Agree x 1
  12. thanks, but now it comes up with this error :( http://pastebin.com/PtpMjW66
     
  13. You've compiled the plugin in Java 8 yet your server is running Java 7. Either downgrade to Java 7 (not suggested) or upgrade the server to Java 8 (suggested). Java 8 can run plugins on older versions of Java, but Java 7 cannot run Java 8 compiled plugins.
     
  14. oh really?