MojangsonParseException from 1.12.2 to new 1.13.2

Discussion in 'Plugin Development' started by Mats_brony, Nov 8, 2019.

  1. Offline

    Mats_brony

    There was such a problem that it produces an error in the self-written plugin: “java.lang.NoClassDefFoundError: net/minecraft/server/v1_13_R2/MojangsonParseException”
    And indeed, there is no such class in 1.13, but in 1.12 it was. What should I do with these?
     
  2. Online

    timtower Moderator Moderator

  3. Offline

    Mats_brony

    java.lang.NoClassDefFoundError: net/minecraft/server/v1_13_R2/MojangsonParseException
    at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_222]
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_222]
    at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_222]
    at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_222]
    at saharnooby.plugins.commons.bridge.NMSBridge.<clinit>(NMSBridge.java:78) ~[?:?]
    at saharnooby.plugins.commons.core.Commons.onEnable(Commons.java:44) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:334) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:443) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:357) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:608) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:570) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:431) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:316) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:787) ~[Paper-1.13.2-b624.jar:git-Paper-624]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
     
  4. Online

    timtower Moderator Moderator

    @Mats_brony That is the error, not the code that you are using in your plugin.
     
  5. Offline

    Mats_brony

  6. Online

    timtower Moderator Moderator

    @Mats_brony You made the plugin, post the code that you are using.
    The stuff that you write in eclipse.
     
  7. Offline

    robertlit

    Lol, the best explaination to what code is.
     

Share This Page