我正在尝试让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

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

    最佳答案

    Redcar还不支持Win64。并非出于任何特定原因,我们只是去了解它。

    如果要使其工作,请在win32.jar中的~/.redcar/jars顶部复制64位swt jar

    如果那不能解决问题,请与我们取得联系。

    08-25 07:09