java - Jruby - 工头 gem 没有运行

标签 java jruby

我正在运行一个 JRUBY 应用程序。偶然发现了一个叫做工头的伟大 gem :
https://github.com/ddollar/foreman

但是我发现 - JVM 不支持 fork :

 foreman startNotImplementedError: fork is not available on this platform
              fork at org/jruby/RubyKernel.java:1657
      fork_with_io at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:32
       run_process at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:44
               run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:19
  with_environment at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:64
               run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:18
             chdir at org/jruby/RubyDir.java:466
               run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:17
             spawn at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/procfile_entry.rb:17
               map at org/jruby/RubyArray.java:2336
             spawn at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/procfile_entry.rb:15
   spawn_processes at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:63
              each at org/jruby/RubyArray.java:1609
   spawn_processes at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:61
             start at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:45
             start at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/cli.rb:28
          __send__ at org/jruby/RubyBasicObject.java:1772
              send at org/jruby/RubyKernel.java:1972
               run at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/task.rb:21
       invoke_task at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/invocation.rb:118
          dispatch at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor.rb:263
             start at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/base.rb:389
            (root) at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/bin/foreman:7
              load at org/jruby/RubyKernel.java:996
            (root) at /home/charlie/.rvm/gems/jruby-head/bin/foreman:19

这是一种耻辱,因为我喜欢经营工头的想法。有谁知道上述问题的解决方法,或者将在 JRUBY 环境中运行的替代方法

最佳答案

感谢这个 gem 的创造者的出色工作,现在可以在 Jruby 中使用

https://github.com/ddollar/foreman

在 Jruby 1.6.6 中运行良好

关于java - Jruby - 工头 gem 没有运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8963912/

相关文章:

java - 您可以将包含不可打印字符的字节数组转换为字符串吗?

java - p:tabMenu没有形式

java - 为什么 opennlp 库的 HelloWorld 在 Java 上运行良好,但在 Jruby 上却不行?

java - 如何在Java中执行Ruby文件?

ruby - Rails lib 类未在生产中加载,在开发中工作正常

java - 子类需要无参数构造函数,但父类(super class)没有

java - 如何从 GSON 解析中确定对象的类别?

ruby-on-rails - 仅在创建时验证方法调用,而不是在更新时调用

java - 在Ruby中实现Java应用程序

Java JPG转PNG