enebo/Purugin — Issue #4: LoadError bukkit, solved
Author: ahmeij
Created: 2011-10-10 07:35:44+00:00
State: open

I tried to follow all instructions but I kept getting this error:

```
09:32:38 [SEVERE] LoadError: no such file to load -- bukkit
require at org/jruby/RubyKernel.java:1038
(root) at /purugin.rb:5

09:32:38 [SEVERE] (LoadError) no such file to load -- bukkit initializing PuruginPlugin v0.1 (Is it up to date?)
org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- bukkit
at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1262)
at org.purugin.PuruginPlugin.executeScript(PuruginPlugin.java:45)
at org.purugin.PuruginPlugin.onLoad(PuruginPlugin.java:37)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:141)
at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:103)
at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
```

I fixed it by adding the Purugin,jar file to the classpath like so:

java -Xms1024M -Xmx1024M -cp jruby-complete.jar:craftbukkit.jar:plugins/purugin.jar org.bukkit.craftbukkit.Main

Maybe I did something wrong but now the plugin works and the .rb files in the plugin directory are functioning.