enebo / Purugin

Ruby Minecraft Plugin support on top of bukkit
238 stars 32 forks source link

Purugin fails to start #7

Closed cyberarm closed 12 years ago

cyberarm commented 12 years ago

run.bat

set GEM_HOME=gems
java -cp jruby-complete-1.6.4.jar;craftbukkit.jar org.bukkit.craftbukkit.Main
plause

server log

15:37:37 [SEVERE] LoadError: no such file to load -- bukkit
  require at org/jruby/RubyKernel.java:1038
   (root) at jar:file:/C:/Documents%20and%20Settings/human/My%20Documents/minecraft/mod%20serv
er/plugins/Purugin.jar!/purugin.rb:8

15:37:37 [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:47)
        at org.purugin.PuruginPlugin.onLoad(PuruginPlugin.java:35)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:141)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
        at net.minecraft.server.ServerConfigurationManager.<init>(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)
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- bukkit
15:37:37 [INFO] Preparing level "world"
15:37:37 [INFO] Default game type: 0
15:37:38 [INFO] Preparing start region for level 0 (Seed: -4528252128809497368)
15:37:39 [INFO] Preparing spawn area: 40%
15:37:40 [INFO] Preparing start region for level 1 (Seed: -4528252128809497368)
15:37:40 [INFO] Preparing spawn area: 0%
15:37:41 [INFO] Preparing spawn area: 24%
15:37:42 [INFO] Preparing spawn area: 32%
15:37:43 [INFO] Preparing spawn area: 40%
15:37:44 [INFO] Preparing spawn area: 52%
15:37:45 [INFO] Preparing spawn area: 56%
15:37:46 [INFO] Preparing spawn area: 61%
15:37:47 [INFO] Preparing spawn area: 69%
15:37:48 [INFO] Preparing spawn area: 77%
15:37:49 [INFO] Preparing spawn area: 81%
15:37:50 [INFO] Preparing spawn area: 85%
15:37:51 [INFO] Preparing spawn area: 93%
15:37:52 [INFO] Preparing spawn area: 97%
15:37:53 [SEVERE] NoMethodError: undefined method `onEnable' for main:Object

15:37:53 [SEVERE] Error occurred while enabling PuruginPlugin v0.1 (Is it up to date?): (NoMethodErr
or) undefined method `onEnable' for main:Object
org.jruby.embed.InvokeFailedException: (NoMethodError) undefined method `onEnable' for main:Object
        at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.call(EmbedRubyObjectAdapterImpl.java:
406)
        at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callMethod(EmbedRubyObjectAdapterImpl
.java:331)
        at org.jruby.embed.ScriptingContainer.callMethod(ScriptingContainer.java:1334)
        at org.purugin.PuruginPlugin.onEnable(PuruginPlugin.java:27)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `onEnable' for main
:Object
15:37:53 [INFO] Server permissions file permissions.yml is empty, ignoring it
15:37:53 [INFO] Done (1.553s)! For help, type "help" or "?"
enebo commented 12 years ago

Not to put you through too much work, but could you move your location 'C:/Documents and Settings/human/My Documents/minecraft/mod server' to a location without any spaces in the path? I suspect there is an issue with spaces and I will fix it, but it would be nice to know for sure that that is the problem.

cyberarm commented 12 years ago

Purugin seems to be working, after moving to C:/modserver

enebo commented 12 years ago

Ah thanks. I will setup my own env with spaces and fix it for the next release. Thanks for testing this for me and hopefully this is a good enough workaround until I do fix it.