Solved I Got These Two Errors

Discussion in 'Bukkit Help' started by Zombieghost_391, Jun 12, 2014.

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

    Zombieghost_391

    t java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_55] 12.06 12:06:04 [Server] INFO Caused by: java.lang.UnsupportedClassVersionError: com/Zombieghost_391/LavaKits/Core : Unsupported major.minor version 52.0 12.06 12:06:04 [Server] INFO at




    12.06 12:06:04 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/Zombieghost_391/LavaKits/Core : Unsupported major.minor version 52.0 12.06 12:06:04 [Server] ERROR Could not load 'plugins/LavaKits.jar' in folder 'plugins'



    I Only Get These Errors When Ever Its On ProHosting But On My Home Server It Works Fine!
    This Is My First Plugin And I Would Like Some One To Help Me Please Thanks!
     
  2. Offline

    Necrodoom

    So you coded the plugin? If so, you are compiling against Java 8 but server is running an earlier version.
     
  3. Offline

    Zombieghost_391

    So So I Need To Update my Java?
     
  4. Offline

    JaguarJo

    Your host needs to update their Java. That's why it works on your home computer but not on the hosted one, because you already have the same Java version that your plugins were made with.
     
  5. Offline

    Zombieghost_391

    I See So There Is Nothing Wrong With My Code. But It Seems Strange That The Host Company Doesn't Update There Java

    Thank You Guys I Just Down Graded my Java To 7 And Know It Works

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  6. Offline

    reeddeer

    I have the same prob. but i have tried everything that you guys have said, but it does not work. here is the plugin code:
    Code:java
    1. package org.reeddeer.minecraft;
    2.  
    3. import java.util.logging.*;
    4. import org.bukkit.*;
    5. import org.bukkit.command.*;
    6. import org.bukkit.entity.*;
    7. import org.bukkit.plugin.java.*;
    8.  
    9. public class ReedCraft extends JavaPlugin{
    10. public static final Logger log = Logger.getLogger("Minecraft");
    11. public boolean onCommand(CommandSender sender, Command command,
    12. String label, String arguments) {
    13. if (arguments == "tp"){
    14. log.info("§b§l[Orefloor]§r Teleporting...");
    15. }
    16. if (label.equalsIgnoreCase("orefloor")) {
    17. if (sender instanceof Player) {
    18. Player me = (Player) sender;
    19. log.info("§b§l[Orefloor]§r Hello there, What do you want to do?");
    20. log.info("Go to the orefloor: /orefloor tp");
    21. log.info("Get more info: /orefloor info");
    22. log.info("Sign up for a event: /orefloor 10");
    23. return true;
    24. }
    25. }
    26. return false;
    27. }
    28. }


    EDIT: i tried wiping java off and re installing it. that did not work
     
  7. Offline

    tcvs

    reeddeer I would recommend you make a new thread in plugin development where you will get a lot more help since a lot more devs look there and will be able to help.

    Zombieghost_391 Since this is solved please give your thread the SOLVED prefix. :)
     
Thread Status:
Not open for further replies.

Share This Page