Hey guys, I've been working on a python plugin for bukkit; And i have one problem. I use this to launch my craftbukkit server Code: java -Xms250m -Xmx1024m -cp mysql-connector-java-bin.jar;jython.jar -jar craftbukkit-0.0.1-SNAPSHOT.jar The plugin is correctly written, and I believe i've included the external library correctly. But i receive this error Code: an 20, 2011 2:03:39 PM org.bukkit.plugin.SimplePluginManager loadPlugins SEVERE: Could not load plugins\pyplugin.jar in plugins: null org.bukkit.plugin.InvalidPluginException at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:83) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:117) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:82) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153) at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177) at net.minecraft.server.ThreadServerApplication.run(SourceFile:512) Caused by: java.lang.NoClassDefFoundError: org/python/core/PyException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:77) ... 8 more Caused by: java.lang.ClassNotFoundException: org.python.core.PyException 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:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more I've tried and tried for a solution, anybody have any ideas? :S
the server is stuck at loading the plugins? do you have any plugins activ on that server? [doing now the error is there ] overread the python plugin <_< 8pm here and up since 7am
No, that is the only plugin; and seeing it stops @ that plugin. It's the error. I know what is wrong with it. The Jython library isn't included. I just can't think of any other way to include the library, as this way doesn't seem to work.
java -Xms250m -Xmx1024m -cp ./mysql-connector-java-bin.jar;./jython.jar -jar craftbukkit-0.0.1-SNAPSHOT.jar isnt cp for classpath? so ./ would be the current dir? not sure if that mad any diffrence just asking out of interesst
My server needs to be able to run on both linux / windows so it's better to leave it how it is, but i believe that works for windows.
Don't put anything other than plugins in the plugin folder, keep pyplugin.jar out of the plugin folder if it is not a plugin.
It is a plugin. The jython lib is not in the plugin folder. Code: name: PyPlugin main: ws.triii.pyplugin.ScriptManager version: 0.5
Look at what it's caused by: Caused by: java.lang.NoClassDefFoundError: org/python/core/PyException That's likely a big clue where you went wrong.