Could not load Vault 1.3.2: ClassNotFoundException
austin-bowen opened this issue ยท 3 comments
Just installed Vault 1.3.2 on my server, reloaded plugins, got this error:
[14:17:15] [Server thread/ERROR]: Could not load 'plugins/Vault-1.3.2.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `${mainClass}'
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:42) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:797) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.Bukkit.reload(Bukkit.java:288) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
Caused by: java.lang.ClassNotFoundException: ${mainClass}
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_55]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_55]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_55]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_55]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_55]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_55]
at java.lang.Class.forName0(Native Method) ~[?:1.7.0_55]
at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_55]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:40) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
... 15 more
I'm running Java 7 update 55.
Yeah, the uploaded jar's plugin.yml must not have added the main class entry correctly during build. I posted it to the forums as well.
In the mean time, if you need to test it, just edit the plugin.yml manually and it should still work.