【发布时间】:2011-08-20 22:14:20
【问题描述】:
我在我的 hello-world-style 应用程序中使用以下 config/warble.rb:
Warbler::Config.new do |config|
config.dirs = %w(app config tmp gems views)
config.includes = FileList["hello.rb"]
config.gems = ["sinatra"]
config.gem_dependencies = true
end
现在当我运行 jruby -S warble 这是错误信息:
warble aborted!
uninitialized constant Warbler::Jar::Pathname
org/jruby/RubyModule.java:2526:in `const_missing'
谁能帮帮我?应用程序在直接执行时运行没有问题,所以看起来我已经安装了所有必需的 gem。
环境:
- JRuby 1.6.1(与 1.5.6 相同)
- Sinatra 1.2.6
- 莺 1.3.0
- Windows XP
- Ubuntu 10.04.1
【问题讨论】: