#NoClassDefError on YamlConfiguration

1 messages · Page 1 of 1 (latest)

orchid karma
#

For some reason I keep getting a NoClassDef error on YamlConfiguration. Any ideas appreciated. It’s a waterfall plugin if that changes anything. LMK if more code needed

Error:

java.lang.NoClassDefFoundError: org/bukkit/configuration/file/YamlConfiguration
    at me.alfiejay.altcontrol.datafiles.YamlFile.<init>(YamlFile.java:23) ~[?:?]

Relevant code: (In abstract class)

    /**
     * Loads Yaml file data
     * @param fileName Name of file in resources (include the .yml)
     * @param plugin Plugin instance
     */
    public YamlFile(String fileName, Plugin plugin) {
        if (!plugin.getDataFolder().exists()) plugin.getDataFolder().mkdir();
        file = new File(plugin.getDataFolder(), fileName);
        if (!file.exists()) createFile();
        config = YamlConfiguration.loadConfiguration(file);
    }
glacial egret
#

Wrong import

#

Waterfall is basically a Bungee clone?

orchid karma
#

Yh

#

Waterfall is like the PaperMC of bungee

glacial egret
#

then you need the non Bukkit import for YamlConfiguration

orchid karma
#

Oh right. IDE only offered Bukkit so IG I need to find what dependency it's from

glacial egret
#

you need teh md5 one. or whatever Waterfall names it

orchid karma
#

Right thank you :D

glacial egret
#

np