Error: java.lang.Error: Unresolved compilation problems:

Discussion in 'Plugin Development' started by Ryan987, May 8, 2013.

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

    Ryan987

    Here is the full error:

    [SEVERE] Could not load 'plugins/quakecraftdev.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.Error: Unresolved compilation problems:
    Syntax error, annotations are only available if source level is 5.0
    Syntax error, annotations are only available if source level is 5.0
    Syntax error, annotations are only available if source level is 5.0

    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:182)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217)
    at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55)
    at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106)
    at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382)
    at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.Error: Unresolved compilation problems:
    Syntax error, annotations are only available if source level is 5.0
    Syntax error, annotations are only available if source level is 5.0
    Syntax error, annotations are only available if source level is 5.0

    at emerald.quakecraft.<init>(quakecraft.java:10)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:178)
    ... 9 more



    Please Help

    Thanks
     
  2. Offline

    Sagacious_Zed Bukkit Docs

    Ryan987
    You plugin doesn't compile. It may be configured improperly
     
  3. Offline

    zack6849

    As it clearly states, your java source level must be 5.0 or higher for annotations, meaning you're either compiling with an old JDK or running on an old JRE
     
Thread Status:
Not open for further replies.

Share This Page