Could not load 'plugins/Test.jar' in folder 'plugins'

Discussion in 'Plugin Help/Development/Requests' started by Martijnw, Jan 16, 2015.

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

    Martijnw

    Hello

    I got a new server and i have made just a Test Plugin Not very special just the Basics.
    But when i put in my server on my computer [with Start.bat] it works. But when i am gonna put it in my 24/7 server i get this problem

    I tried to change the Craftbukkit version but it didnt work. and i moved the server on my pc in to the 24/7 server and it didnt also work

    Here is the Log of the problem


    Code:
    16.01 17:22:05 [Server] Startup Done (1.671s)! For help, type "help" or "?"
    16.01 17:22:05 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    16.01 17:22:05 [Server] INFO Preparing start region for level 2 (Seed: 7449406490821524333)
    16.01 17:22:04 [Server] INFO Preparing start region for level 1 (Seed: 7449406490821524333)
    16.01 17:22:04 [Multicraft] Skipped 139 lines due to rate limit (30/s)
    16.01 17:22:03 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_71]
    16.01 17:22:03 [Server] INFO Caused by: java.lang.UnsupportedClassVersionError: me/martijntjee10/core/Main : Unsupported major.minor version 52.0
    16.01 17:22:03 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_71]
    16.01 17:22:03 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:290) [spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-BT24.jar:git-Spigot-c46583f-e6f9fd4]
    16.01 17:22:03 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/martijntjee10/core/Main : Unsupported major.minor version 52.0
    16.01 17:22:03 [Server] ERROR Could not load 'plugins/Test.jar' in folder 'plugins'
    16.01 17:22:03 [Server] INFO Set PluginClassLoader as parallel capable
    16.01 17:22:03 [Server] INFO Starting Minecraft server on 37.187.153.39:25652
    16.01 17:22:03 [Server] INFO Generating keypair
    16.01 17:22:03 [Server] INFO Using 4 threads for Netty based IO
    16.01 17:22:03 [Server] INFO Server Ping Player Sample Count: 12
    16.01 17:22:03 [Server] INFO Debug logging is disabled
    16.01 17:22:03 [Server] INFO This server is running CraftBukkit version git-Spigot-c46583f-e6f9fd4 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    16.01 17:22:03 [Server] INFO Default game type: SURVIVAL
    16.01 17:22:03 [Server] INFO Loading properties
    16.01 17:22:03 [Server] WARN To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    16.01 17:22:03 [Server] INFO Starting minecraft server version 1.8
    16.01 17:21:58 [Server] INFO Loading libraries, please wait...
    16.01 17:21:58 [Multicraft] Loaded config for "Spigot (1.8 R0.1 BuildTools: 24)"
    16.01 17:21:58 [Multicraft] Starting server!
    16.01 17:21:58 [Multicraft] Loading server properties
     
  2. Moved to Bukkit Alternates.

    @Martijnw You compiled your jar with a different version of Java than your server is running on.
     
  3. Offline

    Martijnw

    Config.yml

    if here is the problem
    Code:
    name: Test
    version: 0.1
    main: me.martijntjee10.core.Main
    author: MartijnWoddema
    database: false
    description: This is a test.
    commands:
    The server version was Craftbukkit and now Spigot 1.8 i tried a lot of different jar.

    also i changed the build path on eclipse
     
  4. @Martijnw Again, it is a Java version mismatch.

     
  5. Offline

    Martijnw

    How can i help this problem because i host a server by a host or do i need to install the new java version
     
  6. @Martijnw Ask your host what Java version they use, they most likely will use Java 7. If you are using Java 8 compile your plugin in Java 7.
     
  7. Offline

    Martijnw

    Thx im gonna ask it now
     
Thread Status:
Not open for further replies.

Share This Page