Java plugin error

Any help topics that don't fit in the current categories can go here.
Post Reply
odogollie
Posts: 4
Joined: Wed Jul 04, 2012 7:33 pm

Java plugin error

Post by odogollie »

Hello, I was following this tutorial (http://www.youtube.com/watch?NR=1&featu ... VmkOf6DhuY) and I got this error...
[SEVERE] Could not load 'plugins\Test.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: Test.Test.Test
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassNotFoundException: Test.Test.Test
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
... 8 more
Can anyone tell me how to resolve this issue?
Image
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Java plugin error

Post by Temor »

Not without seeing your code, no.

Post your code here using
[syntax=java]
[/syntax].
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java plugin error

Post by jacek »

The error is that your main class is not being found
org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: Test.Test.Test
That probably means you got the path wrong in your plugin.yml file.
Image
odogollie
Posts: 4
Joined: Wed Jul 04, 2012 7:33 pm

Re: Java plugin error

Post by odogollie »

I figured it out, I was using JavaSE 1.7, not 1.6
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java plugin error

Post by jacek »

odogollie wrote:I figured it out, I was using JavaSE 1.7, not 1.6
Oh ! Strange cause ! Glad you sorted it anyway :)
Image
Post Reply