在Windows 7 x64上运行redcar 0.8.1

时间:2010-10-27 08:24:49

标签: ruby windows jruby redcar

我正在尝试让redcar在Windows 7 x64机器上运行,但是我收到以下错误:

Redcar 0.8.1 ( java )
Error loading plugin: <Plugin swt 1.0 depends:[dep(core >0)] 0 files>
  cannot link Java class org.eclipse.swt.widgets.Display, probable missing dependency: Cannot load 32-bit SWT libraries on 64-bit JVM
  c:/devtools/jruby-1.5.3/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:51:in `method_missing'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/swt/lib/swt.rb:129
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/swt/lib/swt.rb:31:in `require'
  c:/devtools/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/plugin_manager/lib/plugin_manager/plugin_definition.rb:41:in `load'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/plugin_manager/lib/plugin_manager/plugin_definition.rb:58:in `log_requires'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/plugin_manager/lib/plugin_manager/plugin_definition.rb:40:in `load'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/plugin_manager/lib/plugin_manager.rb:128:in `load_plugin'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/plugin_manager/lib/plugin_manager.rb:109:in `load'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/redcar.rb:111:in `load_prerequisites'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/redcar.rb:142:in `load_threaded'
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:28
  C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:19:in `load'
  c:\devtools\jruby-1.5.3\bin\redcar:19
C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/swt/lib/swt.rb:50:in `show': uninitialized constant Swt::Graphics (NameError)
        from C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/swt/lib/swt.rb:97:in `create_splash_screen'
        from C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/redcar.rb:168:in `show_splash'
        from C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:29
        from C:/devtools/jruby-1.5.3/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:19:in `load'
        from c:\devtools\jruby-1.5.3\bin\redcar:19

该错误似乎表明SWT是32位版本的问题。由于基于eclipse的应用程序在我的机器上正常运行,我想这里有一些我不知道的东西。

我以前安装redcar的步骤:

  • 下载并安装jruby(使用64位可执行文件)
  • 运行jruby -S gem install redcar以安装redcar gem
  • 运行redcar install

我也尝试从源代码安装,但结果相同。

2 个答案:

答案 0 :(得分:3)

Redcar尚未支持Win64。不是出于任何特殊原因,我们只是去了它。

如果你想让它工作,请将{64} swt jar复制到win32.jar~/.redcar/jars的顶部

如果不能胜任,请联系。

答案 1 :(得分:2)

没有足够的酷到拥有Windows 7我担心我无法真正帮助你,但我认为你最好的选择是要求那些直接开发Redcar的男/女。请随时向Redcar编辑组发送电子邮件(redcar-editor@googlegroups.com)。